init

gest init: initialize gest for the current directory.

struct Command

source

pub struct Command

Initialize 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

source

pub(crate) fn local(&self) -> bool

Whether this invocation should create a project-local .gest directory.

Parameter Type Description
returns bool true when --local was given.

Command::call

source

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.