Skip to content

Commit aae74da

Browse files
committed
feat: added push cli command
1 parent 96d0d52 commit aae74da

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

crates/cli/src/command/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pub mod download;
33
pub mod feature;
44
pub mod report;
55
pub mod watch;
6+
pub mod push;

crates/cli/src/main.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ enum Commands {
5050
#[arg(short, long)]
5151
path: Option<String>,
5252
},
53+
Push {
54+
/// Runtime Token for Sagittarius.
55+
#[arg(short, long)]
56+
token: String,
57+
/// URL to Sagittarius.
58+
#[arg(short, long)]
59+
url: String,
60+
/// Optional path to root directory of all definitions.
61+
#[arg(short, long)]
62+
path: Option<String>,
63+
},
5364
Download {
5465
#[arg(short, long)]
5566
tag: Option<String>,
@@ -70,5 +81,6 @@ async fn main() {
7081
command::download::handle_download(tag, features).await
7182
}
7283
Commands::Watch { path } => command::watch::watch_for_changes(path).await,
84+
Commands::Push { token, url, path } => command::push::push(token, url, path).await,
7385
}
7486
}

0 commit comments

Comments
 (0)