Skip to main content

init

Function init 

Source
pub async fn init(out: &OutputConfig, host: Option<&str>)
Expand description

Interactively set up the config file, or print JSON instructions when --json is used.

In JSON mode the function prints a machine-readable instructions object and returns. In an interactive terminal it prompts for Jira type, host, credentials, and profile name, verifies the credentials against the API, then writes (or updates) ~/.config/jira/config.toml.