Rename --flake-uri to --flake.

This commit is contained in:
r-vdp 2023-03-24 16:19:18 +01:00
parent ec231161ed
commit 0cc421ead0
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -89,7 +89,7 @@ A simple System Manager module could look something like this:
Once the configuration defined, you can activate it using the `system-manager` CLI: Once the configuration defined, you can activate it using the `system-manager` CLI:
```sh ```sh
nix run 'github:numtide/system-manager' -- switch --flake-uri '.' nix run 'github:numtide/system-manager' -- switch --flake '.'
``` ```
# Currently supported features # Currently supported features

View file

@ -22,21 +22,21 @@ struct Args {
target_host: Option<String>, target_host: Option<String>,
#[arg(long, action)] #[arg(long, action)]
/// Whether to invoke the remove command with sudo. /// Invoke the remote command with sudo.
/// Only useful in combination with /// Only useful in combination with --target-host
use_remote_sudo: bool, use_remote_sudo: bool,
} }
#[derive(clap::Args, Debug)] #[derive(clap::Args, Debug)]
struct BuildArgs { struct BuildArgs {
#[arg(long)] #[arg(long = "flake", name = "FLAKE_URI")]
/// The flake defining the system-manager profile /// The flake defining the system-manager profile
flake_uri: String, flake_uri: String,
} }
#[derive(clap::Args, Debug)] #[derive(clap::Args, Debug)]
struct GenerateArgs { struct GenerateArgs {
#[arg(long)] #[arg(long = "flake", name = "FLAKE_URI")]
/// The flake defining the system-manager profile /// The flake defining the system-manager profile
flake_uri: Option<String>, flake_uri: Option<String>,