Skip to content

Commit 641cfca

Browse files
committed
feat: added out path parameter
1 parent 6f52b6b commit 641cfca

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

crates/cli/src/command/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pub mod download;
22
pub mod parse_errors;
3+
pub mod publish;
34
pub mod push;
45
pub mod report;
56
pub mod search;
67
pub mod search_module;
78
pub mod watch;
8-
pub mod publish;

crates/cli/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ enum Commands {
7575
/// Optional path to root directory of all definitions.
7676
#[arg(short, long)]
7777
path: Option<String>,
78+
/// Optional path to generated output directory.
79+
#[arg(short, long)]
80+
out: Option<String>,
7881
},
7982
Download {
8083
#[arg(short, long)]
@@ -105,5 +108,8 @@ async fn main() {
105108
version,
106109
path,
107110
} => command::push::push(token, url, version, path).await,
111+
Commands::Publish { version, path, out } => {
112+
command::publish::publish(version, path, out).await
113+
}
108114
}
109115
}

0 commit comments

Comments
 (0)