greening.commands.init

greening.commands.init.help_init()[source]

Print usage information for the greening init command.

This help text describes how greening init sets up an environment-aware greening.yaml configuration file, with examples and options.

Return type:

None

greening.commands.init.init()[source]

Initialize a greening.yaml configuration file in the current directory.

This function checks whether greening.yaml already exists. If not, it creates a default configuration using environment-aware and git-aware introspection (e.g., GitHub username/email and token).

  • Detects git username and email via git config

  • Checks for presence of a GITHUB_TOKEN environment variable

  • Writes a default config only if one does not already exist

Return type:

None