Metadata-Version: 2.3
Name: yog-sothoth
Version: 0.0.2
Summary: That one who knows all the secrets
Keywords: cli,devtools,environment,dotenv,infrastructure
Author: Fernando Bryan Reza Campos
Author-email: Fernando Bryan Reza Campos <fer.rezac@outlook.com>
License: MIT License
         
         Copyright (c) 2025 Fernando Bryan Reza Campos
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/Yrrrrrf/yog-sothoth
Project-URL: Issues, https://github.com/Yrrrrrf/yog-sothoth/issues
Project-URL: Repository, https://github.com/Yrrrrrf/yog-sothoth
Description-Content-Type: text/markdown

# Yog-Sothoth

> _The Key and the Gate_

A personal infrastructure CLI tool written in Go. Not something you work
_inside_ — it's the ritual you run **at the threshold** of a project. It
eliminates friction at project lifecycle boundaries: starting clean, staying
clean, validating everything.

Pairs with **[Azathoth](https://github.com/Yrrrrrf/azathoth)** (AI/MCP layer) as
a personal dev acceleration system.

> _Yog creates the world. Azathoth understands it. You do everything._

---

## Commands

| Command                | Description                                                        |
| ---------------------- | ------------------------------------------------------------------ |
| `yog doctor`           | Health check — runtimes, `.env` completeness, git, README, LICENSE |
| `yog env check`        | Validates nothing is missing vs `.env.example`                     |
| `yog env diff`         | Surfaces drift — vars in `.env` but not in the template            |
| `yog env sync`         | Interactively fills in missing variables                           |
| `yog env load`         | Walks up the directory tree to find and load `.env`                |
| `yog reborn [runtime]` | Deep-cleans build artifacts and reinstalls from scratch            |

`reborn` flags: `--deep` (also nuke lockfiles), `--full` (recursive workspace
clean), `--dry-run`, `--no-install`

> **Node.js is never supported.** Deno and Bun only.

---

## Install

### Go binary

```bash
go build -o ~/go/bin/yog ./src/yog_sothoth
```

Ensure `~/go/bin` is in your `$PATH`. On NixOS, add it via `home.sessionPath` in
home-manager, or use the uv wrapper below.

### uv wrapper (NixOS / read-only systems)

```bash
uv tool install --editable .
```

This installs a `yog` shim via the Python wrapper that proxies to the compiled
Go binary — no PATH surgery required.

---

## Architecture

Strict 3-layer separation — non-negotiable:

```
src/yog_sothoth/
├── main.go          ← calls cmd.Execute(), nothing else
├── cmd/             ← CLI layer: Cobra only, zero logic
├── internal/
│   ├── deps/        ← reborn logic
│   ├── env/         ← .env management logic
│   └── health/      ← doctor check logic
└── pkg/             ← shared config types + Lip Gloss UI styles
```

- `cmd/` defines flags and delegates. Never contains business logic.
- `internal/` does all real work. Never knows about Cobra.
- `pkg/` holds only what's genuinely shared across layers.

---

## Tech Stack

- **Language:** Go — [Cobra](https://github.com/spf13/cobra) ·
  [Viper](https://github.com/spf13/viper) ·
  [Lip Gloss](https://github.com/charmbracelet/lipgloss) ·
  [godotenv](https://github.com/joho/godotenv)
- **Python shim:** uv workspace · `uv tool install --editable .`

---

## License

This project is licensed under the terms of the [MIT license](LICENSE).
