Skip to content

Commit

Permalink
Merge pull request #26 from molnett/deploy-init-top-level
Browse files Browse the repository at this point in the history
feat: provide deploy and init as top level commands, stop lying in readme
  • Loading branch information
tmlye authored Mar 27, 2024
2 parents edc8530 + f4763a9 commit 0517c2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit 0517c2b

Please sign in to comment.