runix/arguments/
common.rs

1//! Arguments common for all mix commands
2
3use crate::command_line::ToArgs;
4
5/// These arguments do not depend on the nix subcommand issued
6/// and refer to the options defined in
7/// - (libmain/common-args.cc)[https://github.com/NixOS/nix/blob/a6239eb5700ebb85b47bb5f12366404448361f8d/src/libmain/common-args.cc#L7-L81]
8/// - (nix/main.cc)[https://github.com/NixOS/nix/blob/b7e8a3bf4cbb2448db860f65ea13ef2c64b6883b/src/nix/main.cc#L66-L110]
9#[derive(Clone, Default, Debug)]
10pub struct NixCommonArgs {}
11impl ToArgs for NixCommonArgs {
12    fn to_args(&self) -> Vec<String> {
13        vec![]
14    }
15}