@smbcloud / cli / commits / 968dfcc

fix some stuff\

Seto Elkahfi committed May 28, 2025 at 00:32 UTC 968dfcc98e66961db4a079076504cd32edac9048
7 files changed +22 -21
crates/cli/Cargo.toml
+1 -1
@@ -3,7 +3,7 @@ name = "smbcloud-cli"
3 version = "0.3.10"
4 edition = "2021"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 -description = "Command line tool for creating and managing smbCloud resources."
6 +description = "Command line tool for deploying NextJS app on the smbCloud platform."
7 license = "Apache-2.0"
8 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
9 documentation = "https://docs.smbcloud.xyz/cli"
crates/cli/src/cli/mod.rs
+15 -14
@@ -32,27 +32,28 @@ pub struct Cli {
32
33 #[derive(Subcommand)]
34 pub enum Commands {
35 + #[clap(
36 + about = "Deploy project. This is smb main command. Requires an smbCloud account.",
37 + display_order = 0
38 + )]
39 + Deploy {},
40 + #[clap(
41 + about = "Initialize project. Requires an smbCloud account.",
42 + display_order = 1
43 + )]
44 + Init {},
45 + #[clap(about = "Login to your account.", display_order = 2)]
46 + Login {},
47 + #[clap(about = "Logout from your account.", display_order = 3)]
48 + Logout {},
49 #[clap(about = "Manage your account.")]
50 Account {
51 #[clap(subcommand)]
52 command: account::cli::Commands,
53 },
40 -
41 - #[clap(about = "Login to your account.")]
42 - Login {},
43 -
44 - #[clap(about = "Logout from your account.")]
45 - Logout {},
46 -
47 - #[clap(about = "Manage your projects. Add, delete, edit. Need authentication.")]
54 + #[clap(about = "Manage your projects.")]
55 Project {
56 #[clap(subcommand)]
57 command: project::cli::Commands,
58 },
52 -
53 - #[clap(about = "Initialize project. Requires an smbCloud account.")]
54 - Init {},
55 -
56 - #[clap(about = "Deploy project. It will use deploy.sh script in the .smb folder.")]
57 - Deploy {},
59 }
crates/cli/src/main.rs
+2 -2
@@ -111,11 +111,11 @@ async fn run() -> Result<CommandResult> {
111 }
112
113 match cli.command {
114 + Commands::Init {} => process_project_init(cli.environment).await,
115 + Commands::Deploy {} => process_deploy(cli.environment).await,
116 Commands::Account { command } => process_account(cli.environment, command).await,
117 Commands::Login {} => process_login(cli.environment).await,
118 Commands::Logout {} => process_logout(cli.environment).await,
119 Commands::Project { command } => process_project(cli.environment, command).await,
118 - Commands::Init {} => process_project_init(cli.environment).await,
119 - Commands::Deploy {} => process_deploy(cli.environment).await,
120 }
121 }
crates/smbcloud-model/Cargo.toml
+1 -1
@@ -3,7 +3,7 @@ name = "smbcloud-model"
3 version = "0.3.9"
4 edition = "2021"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 -description = "Command line tool for creating and managing smbcloud resources."
6 +description = "Command line tool for deploying NextJS app on the smbCloud platform."
7 license = "Apache-2.0"
8 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
9 documentation = "https://docs.smbcloud.xyz/cli"
crates/smbcloud-networking-project/Cargo.toml
+1 -1
@@ -3,7 +3,7 @@ name = "smbcloud-networking-project"
3 version = "0.3.9"
4 edition = "2021"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 -description = "Command line tool for creating and managing smbcloud resources."
6 +description = "Command line tool for deploying NextJS app on the smbCloud platform."
7 license = "Apache-2.0"
8 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
9 documentation = "https://docs.smbcloud.xyz/cli"
crates/smbcloud-networking/Cargo.toml
+1 -1
@@ -4,7 +4,7 @@ version = "0.3.9"
4 edition = "2021"
5 readme = "README.md"
6 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
7 -description = "Command line tool for creating and managing smbcloud resources."
7 +description = "Command line tool for deploying NextJS app on the smbCloud platform."
8 license = "Apache-2.0"
9 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
10 documentation = "https://docs.smbcloud.xyz/cli"
crates/smbcloud-utils/Cargo.toml
+1 -1
@@ -3,7 +3,7 @@ name = "smbcloud-utils"
3 version = "0.3.9"
4 edition = "2021"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 -description = "Command line tool for creating and managing smbcloud resources."
6 +description = "Command line tool for deploying NextJS app on the smbCloud platform."
7 license = "Apache-2.0"
8 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
9 documentation = "https://docs.smbcloud.xyz/cli"