Skip to content

Commit 3897633

Browse files
authored
Merge pull request #17 from microsoft/cli-update
update recipes cli
2 parents f627ec3 + c0d73b9 commit 3897633

10 files changed

Lines changed: 1642 additions & 48 deletions

File tree

‎cli/Cargo.lock‎

Lines changed: 659 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cli/Cargo.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ repository = "https://github.com/microsoft/adaptive-apps"
1212
[workspace.dependencies]
1313
anyhow = "1"
1414
clap = { version = "4", features = ["derive", "env"] }
15+
owo-colors = { version = "4", features = ["supports-colors"] }
16+
serde = { version = "1", features = ["derive"] }
17+
serde_json = "1"
18+
serde_yaml = "0.9"
19+
ureq = { version = "2", features = ["json"] }
1520
which = "6"

‎cli/ada/Cargo.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ path = "src/main.rs"
1414
[dependencies]
1515
anyhow.workspace = true
1616
clap.workspace = true
17+
owo-colors.workspace = true
18+
serde.workspace = true
19+
serde_json.workspace = true
20+
serde_yaml.workspace = true
21+
ureq.workspace = true
1722
which.workspace = true

‎cli/ada/src/cli.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::Result;
22
use clap::{Parser, Subcommand};
33

4-
use crate::commands::bootstrap;
4+
use crate::commands::{bootstrap, package};
55

66
#[derive(Debug, Parser)]
77
#[command(
@@ -20,12 +20,16 @@ pub struct Cli {
2020
enum Command {
2121
/// Install or upgrade a portfolio onto the current Kubernetes context.
2222
Bootstrap(bootstrap::BootstrapArgs),
23+
24+
/// Analyze an app source folder and emit a Radius app.bicep file.
25+
Package(package::PackageArgs),
2326
}
2427

2528
impl Cli {
2629
pub fn run(self) -> Result<()> {
2730
match self.command {
2831
Command::Bootstrap(args) => bootstrap::run(args),
32+
Command::Package(args) => package::run(args),
2933
}
3034
}
3135
}

0 commit comments

Comments
 (0)