init
gest init: initialize gest for the current directory.struct Command
pub struct CommandInitialize gest for the current directory.
| Field | Type | Description |
|---|---|---|
local |
bool | Create a .gest directory in the current project with a local project.json instead of using the global data store. |
Implements FromArgMatches, Args, Debug.
Command::local
pub(crate) fn local(&self) -> boolWhether this invocation should create a project-local .gest directory.
| Parameter | Type | Description |
|---|---|---|
| returns | bool | true when --local was given. |
Command::call
pub async fn call(&self, context: &AppContext) -> Result<(), Error>Create or reuse a project row for the current working directory.
| Parameter | Type | Description |
|---|---|---|
context |
&AppContext | the application context: settings, store and current project |
| returns | Result<(), Error> | Ok(()) when the command succeeds, or the error that stopped it. |