a CLI Tool for Mojo Package Manager
Project description
Mod = (Mojo Dep)
English | 简体中文
Intro
- Mojo Package Manager Tool
- like:
- Rust:
Cargo
- Python:
Pip/Poetry/PDM
- Go:
Dep + Vendor
- Rust:
Quick Start
- ✅ requirements:
- mojo 0.6+
- python 3.10+
- git
mojo -v
mojo 0.6.1 (876ded2e)
python --version 07:27:03
Python 3.10.9
- ✅ install
mod
:
pip install mod-cli
# or
poetry add mod-cli --dev
- ✅ Usage: (Using the
mod
command)-
mod new
: create a new mojo project--lib
: Create a library project.--bin
: Create an application (executable binary).
-
mod init
: Create a new mojo package in an existing directory -
mod build
: build amojopkg
-
mod install
: download mojo dependencies totarget/deps
-
mod hack
:mod hack build
: buildtarget/deps
dependencies intomojopkg
mod hack install
: installtarget/deps
dependencies to `mojo standard library pathmod hack uninstall
: uninstalltarget/deps
dependenciesmod hack clean
: Clean the mojopkg (binary library) generated by compiling target/deps.
-
mod run
: Run a mojo file. -
mod test
: Run unit tests. -
mod add
: Add a dependency. -
mod remove
: Remove a dependency. -
mod list
: List all dependencies. -
mod search
: Search for dependencies (fuzzy search). -
mod sync
: Sync dependencies. -
mod lint
: Code style check. -
mod publish
: Publish a mojo project. -
mod workspace
: Manage monorepo workspaces.mod workspace init
: Initialize a workspace.mod workspace list
: List workspaces.mod workspace add
: Add a workspace.mod workspace remove
: Remove a workspace.
-
mod self
: Manage itself.mod self update
: Update the mod command itself.
-
mod help
: Show help information.
-
mod --help
Manual
mod cmds
✅ Create a new project
- like
cargo new
style:
# new a libary
mod new your/path/to/project --lib
# new a app
mod new your/path/to/project --bin
❎ Build Mojo Package
- ❎ TODO
mod build
References
package manager
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mod_cli-0.1.2.tar.gz
(52.8 kB
view details)
Built Distribution
mod_cli-0.1.2-py3-none-any.whl
(58.9 kB
view details)
File details
Details for the file mod_cli-0.1.2.tar.gz
.
File metadata
- Download URL: mod_cli-0.1.2.tar.gz
- Upload date:
- Size: 52.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0503a50d25463e6d01d28c7480c9c455c1f849536e28e41f275713643a7899e |
|
MD5 | 99bcbbd1b16db63b62de6abca6547765 |
|
BLAKE2b-256 | 403d82b56bc1ff1b4cd12b2587275986fa3aa34211baf0e0e6f6ae3a641cd942 |
File details
Details for the file mod_cli-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mod_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 58.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6216242fc39994ad895b5278a5316229990cdb016b560bc35f82257e731dfb3 |
|
MD5 | dd5cc2a2268ef65ef1cbabd10c8e4c45 |
|
BLAKE2b-256 | f3ab0cec2e04e352201a185f3c295fe74ce17e01e7b26e6065d4f3ee7cfee8e4 |