hermes.commands.init.base
Attributes
Classes
Generic enumeration. |
|
Generic enumeration. |
|
Configuration of the |
|
Install HERMES onto a project. |
Functions
|
|
|
|
|
|
|
Takes any url produced by 'git remote get-url origin' and returns a unified version with https & without .git |
Module Contents
- hermes.commands.init.base.TUTORIAL_URL = 'https://docs.software-metadata.pub/en/latest/tutorials/automated-publication-with-ci.html'
- class hermes.commands.init.base.GitHoster
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- class hermes.commands.init.base.DepositPlatform
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- hermes.commands.init.base.DepositPlatformNames: dict[DepositPlatform, str]
- hermes.commands.init.base.DepositPlatformUrls: dict[DepositPlatform, str]
- class hermes.commands.init.base.HermesInitFolderInfo
-
- used_git_hoster: GitHoster
- hermes.commands.init.base.scout_current_folder() HermesInitFolderInfo
- hermes.commands.init.base.convert_remote_url(url: str) str
Takes any url produced by ‘git remote get-url origin’ and returns a unified version with https & without .git
- class hermes.commands.init.base.HermesInitSettings(/, **data: Any)
Bases:
pydantic.BaseModel
Configuration of the
init
command.
- class hermes.commands.init.base.HermesInitCommand(parser: argparse.ArgumentParser)
Bases:
hermes.commands.base.HermesCommand
Install HERMES onto a project.
- folder_info: HermesInitFolderInfo
- deposit_platform: DepositPlatform
- init_command_parser(command_parser: argparse.ArgumentParser) None
Initialize the command line arguments available for this specific HERMES sub-commands.
You should override this method to add your custom arguments to the command line parser of the respective sub-command.
- Parameters:
command_parser – The command line sub-parser responsible for the HERMES sub-command.
- load_settings(args: argparse.Namespace)
Load settings from the configuration file (passed in from command line).
- __call__(args: argparse.Namespace) None
Execute the HERMES sub-command.
- Parameters:
args – The namespace that was returned by the command line parser when reading the arguments.
- create_citation_cff()
If there is no CITATION.cff, the user gets the opportunity to create one online.
- create_ci_template()
Downloads and configures the ci workflow files using templates from the chosen template branch
- configure_ci_template(ci_file_path)
Replaces all {%parameter%} in a ci file with values from ci_parameters dict
- no_git_setup(start_question: str = '')
Makes the init for a gitless project (basically just creating hermes.toml)