summaryrefslogtreecommitdiff
path: root/tests/integration/cli_run.rs
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2026-02-15 21:27:00 +0100
committerDawid Rycerz <dawid@rycerz.xyz>2026-02-15 21:27:00 +0100
commitce0dbf6b249956700c6a1705bf4ad85a09d53e8c (patch)
treed7c3236807cfbf75d7f3a355eb5df5a5e2cc4ad7 /tests/integration/cli_run.rs
parent064a1d01c5c14f5ecc032fa9b8346a4a88b893f6 (diff)
feat: witryna 0.2.0HEADv0.2.0main
Switch, cleanup, and status CLI commands. Persistent build state via state.json. Post-deploy hooks on success and failure with WITRYNA_BUILD_STATUS. Dependency diet (axum→tiny_http, clap→argh, tracing→log). Drop built-in rate limiting. Nix flake with NixOS module. Arch Linux PKGBUILD. Centralized version management. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests/integration/cli_run.rs')
-rw-r--r--tests/integration/cli_run.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/integration/cli_run.rs b/tests/integration/cli_run.rs
index 0ea8d20..e12beb5 100644
--- a/tests/integration/cli_run.rs
+++ b/tests/integration/cli_run.rs
@@ -80,10 +80,10 @@ sites = []
let output = Command::new(witryna_bin())
.args([
- "--config",
- config_path.to_str().unwrap(),
"run",
"nonexistent",
+ "--config",
+ config_path.to_str().unwrap(),
])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
@@ -130,10 +130,10 @@ async fn cli_run_build_failure_exits_nonzero() {
let output = Command::new(witryna_bin())
.args([
- "--config",
- config_path.to_str().unwrap(),
"run",
"fail-site",
+ "--config",
+ config_path.to_str().unwrap(),
])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
@@ -193,10 +193,10 @@ async fn cli_run_builds_site_successfully() {
let output = Command::new(witryna_bin())
.args([
- "--config",
- config_path.to_str().unwrap(),
"run",
"test-site",
+ "--config",
+ config_path.to_str().unwrap(),
])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
@@ -254,11 +254,11 @@ async fn cli_run_verbose_shows_build_output() {
let output = Command::new(witryna_bin())
.args([
- "--config",
- config_path.to_str().unwrap(),
"run",
"verbose-site",
"--verbose",
+ "--config",
+ config_path.to_str().unwrap(),
])
.stdout(Stdio::piped())
.stderr(Stdio::piped())