Skip to content

Commit 599e401

Browse files
authored
Merge pull request #1179 from itowlson/MOSTLY-flagless-app-source
Mostly flagless app source
2 parents aa6bce1 + 4153d74 commit 599e401

File tree

4 files changed

+330
-39
lines changed

4 files changed

+330
-39
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ hippo = { git = "https://github.com/deislabs/hippo-cli", tag = "v0.16.1" }
3131
is-terminal = "0.4"
3232
lazy_static = "1.4.0"
3333
nix = { version = "0.24", features = ["signal"] }
34+
oci-distribution = { git = "https://github.com/radu-matei/oci-distribution", branch = "update-dockerhub-default-registry" }
3435
outbound-http = { path = "crates/outbound-http" }
3536
outbound-redis = { path = "crates/outbound-redis" }
3637
spin-key-value = { path = "crates/key-value" }

src/commands/build.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ use super::up::UpCommand;
1111
#[derive(Parser, Debug)]
1212
#[clap(about = "Build the Spin application", allow_hyphen_values = true)]
1313
pub struct BuildCommand {
14-
/// Path to spin.toml.
14+
/// Path to application manifest. The default is "spin.toml".
1515
#[clap(
16-
name = APP_CONFIG_FILE_OPT,
17-
short = 'f',
18-
long = "file",
19-
)]
16+
name = APP_CONFIG_FILE_OPT,
17+
short = 'f',
18+
long = "from",
19+
alias = "file",
20+
)]
2021
pub app: Option<PathBuf>,
2122

2223
/// Run the application after building.
@@ -33,7 +34,6 @@ impl BuildCommand {
3334
.app
3435
.as_deref()
3536
.unwrap_or_else(|| DEFAULT_MANIFEST_FILE.as_ref());
36-
3737
spin_build::build(manifest_file).await?;
3838

3939
if self.up {
@@ -44,7 +44,7 @@ impl BuildCommand {
4444
)))
4545
.chain(self.up_args),
4646
);
47-
cmd.app = Some(manifest_file.into());
47+
cmd.file_source = Some(manifest_file.into());
4848
cmd.run().await
4949
} else {
5050
Ok(())

0 commit comments

Comments
 (0)