Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: provide deploy and init as top level commands, stop lying in readme #26

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Molnctl is the commandline interface to interact with [Molnett](https://molnett.
### Download from Github

We recommend downloading the latest version from the [releases page](https://github.com/molnett/molnctl/releases).
There are pre-compiled versions available for MacOS, Linux and Windows.
There are pre-compiled versions available for MacOS and Linux.

### Compile it yourself

Expand Down
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ enum Commands {
Auth(commands::auth::Auth),
/// Create and manage environments
Environments(commands::environments::Environments),
/// Deploy a service
Deploy(commands::services::Deploy),
/// Generate Dockerfile and Molnett manifest
Initialize(commands::services::Initialize),
/// Manage organizations
Orgs(commands::orgs::Orgs),
/// Create and manage secrets
Expand All @@ -75,6 +79,8 @@ fn main() -> Result<()> {
match cli.command {
Some(Commands::Auth(auth)) => auth.execute(&mut base),
Some(Commands::Environments(environments)) => environments.execute(&mut base),
Some(Commands::Deploy(deploy)) => deploy.execute(&mut base),
Some(Commands::Initialize(init)) => init.execute(&mut base),
Some(Commands::Orgs(orgs)) => orgs.execute(&mut base),
Some(Commands::Secrets(secrets)) => secrets.execute(&mut base),
Some(Commands::Services(svcs)) => svcs.execute(&mut base),
Expand Down
Loading