e948f11784
When `--init` is passed on the command line, search upward for the project root, identified by the presence of a VCS directory like `.git`, falling back to the current directory, and create a default justfile in that directory.
21 lines
305 B
Rust
21 lines
305 B
Rust
use crate::common::*;
|
|
|
|
#[derive(PartialEq, Clone, Debug)]
|
|
pub(crate) enum Subcommand {
|
|
Dump,
|
|
Edit,
|
|
Evaluate {
|
|
overrides: BTreeMap<String, String>,
|
|
},
|
|
Init,
|
|
List,
|
|
Run {
|
|
overrides: BTreeMap<String, String>,
|
|
arguments: Vec<String>,
|
|
},
|
|
Show {
|
|
name: String,
|
|
},
|
|
Summary,
|
|
}
|