cli: the binary is syn
It was built as syn-cli while every message it prints, and the daemon's, tells the user to run `syn …`. The [[bin]] is now syn (the package stays syn-cli, so -p syn-cli still selects it), and the justfile recipes, the integration tests' CARGO_BIN_EXE lookup and the flake's package follow — nix's default package is now .#syn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8c4ff271a0
commit
1b5b35420b
@@ -115,7 +115,7 @@
|
||||
doInstallCargoArtifacts = false;
|
||||
} // extraArgs);
|
||||
|
||||
syn-cli = mkBin "syn-cli" {};
|
||||
syn = mkBin "syn" {};
|
||||
syn-tui = mkBin "syn-tui" {};
|
||||
syn-gui = mkBin "syn-gui" {
|
||||
# gui-app is excluded from the workspace's `default-members` (see
|
||||
@@ -192,8 +192,8 @@
|
||||
'';
|
||||
in {
|
||||
packages = {
|
||||
inherit syn-cli syn-tui syn-gui;
|
||||
default = syn-cli;
|
||||
inherit syn syn-tui syn-gui;
|
||||
default = syn;
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
||||
@@ -181,7 +181,7 @@ build-gui:
|
||||
[group: "run-cli"]
|
||||
[env("RUST_LOG", "info")]
|
||||
cli *args:
|
||||
cargo run --manifest-path rust/Cargo.toml --bin syn-cli -- {{args}}
|
||||
cargo run --manifest-path rust/Cargo.toml --bin syn -- {{args}}
|
||||
|
||||
# test/store-dirs/ is gitignored and not created by any recipe — run
|
||||
# `just init-test-ensemble-cli test/store-dirs/canonical` once beforehand.
|
||||
@@ -518,8 +518,8 @@ test-env-daemon-b dir="test-nodes":
|
||||
test-env-daemon-b-skewed dir="test-nodes" offset="+3 days":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd rust && cargo build --bin syn-cli && cd ..
|
||||
run=(faketime -m "{{offset}}" rust/target/debug/syn-cli --store "{{dir}}/node_b" daemon start --foreground)
|
||||
cd rust && cargo build --bin syn && cd ..
|
||||
run=(faketime -m "{{offset}}" rust/target/debug/syn --store "{{dir}}/node_b" daemon start --foreground)
|
||||
export FAKETIME_DONT_FAKE_MONOTONIC=1
|
||||
if command -v faketime >/dev/null 2>&1; then
|
||||
exec "${run[@]}"
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[[bin]]
|
||||
name = "syn-cli"
|
||||
name = "syn"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -124,7 +124,7 @@ pub fn setup_shared_ensemble(paths: &[&Path]) {
|
||||
|
||||
/// Build a `syn` command pointing at the given store path.
|
||||
pub fn syn_cmd(store_path: &Path) -> Command {
|
||||
let mut cmd = Command::new(env!("CARGO_BIN_EXE_syn-cli"));
|
||||
let mut cmd = Command::new(env!("CARGO_BIN_EXE_syn"));
|
||||
cmd.arg("--store").arg(store_path);
|
||||
cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user