Metadata-Version: 2.1
Name: mod-cli
Version: 0.1.1
Summary: a CLI Tool for Mojo Package Manager
Author: Henry.Huang
Author-email: hhglory@outlook.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
Requires-Dist: loguru (>=0.7.2,<0.8.0)
Requires-Dist: rich (>=13.7.0,<14.0.0)
Requires-Dist: tomlkit (>=0.12.3,<0.13.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Description-Content-Type: text/markdown

# Mod = (Mojo Dep)

- [Mojo](https://docs.modular.com/mojo/) Package Manager Tool
- like:
    - Rust: `Cargo`
    - Python: `Pip/Poetry/PDM`
    - Go: `Dep + Vendor`

## Quick Start

- install:

```ruby

pip install mod-cli

# or
poetry add mod-cli --dev

```

- usage:
    - `mod new`: create a new project
    - `mod init`
    - `mod build`: build a `mojopkg`
    - `mod run`: run mojo file
    - `mod test`: unit test
    - `mod publish`: publish a `mojopkg`
    - `mod workspace`: for monorepo

```ruby

mod --help


```

## Manual

- `mod cmds`

### ✅ Create a new project

- like `cargo new` style:

```ruby
# new a libary
mod new your/path/to/project --lib

# new a app
mod new your/path/to/project --bin
```

### ❎ Build Mojo Package

- ❎ TODO

```ruby

mod build

```

# References

- https://taskfile.dev
- typer: https://typer.tiangolo.com

> package manager

- [python + poetry](https://python-poetry.org/)
- [python + pdm](https://pdm-project.org/latest/)
- [rust + cargo](https://doc.rust-lang.org/cargo/)
- [golang + dep](https://github.com/golang/dep)
