Skip to content

Commit

Permalink
Always use Twine's --non-interactive in publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Feb 25, 2024
1 parent 0c3e5d4 commit be8424e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rye/src/cli/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
publish_cmd
.arg("-mtwine")
.arg("--no-color")
.arg("--non-interactive")
.arg("upload")
.args(files);

Expand All @@ -115,9 +116,6 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
if let Some(cert) = cmd.cert {
publish_cmd.arg("--cert").arg(cert);
}
if cmd.yes {
publish_cmd.arg("--non-interactive");
}

if output == CommandOutput::Quiet {
publish_cmd.stdout(Stdio::null());
Expand Down

0 comments on commit be8424e

Please sign in to comment.