hermes.commands.harvest.util

Submodules

Package Contents

Functions

get_project_path(→ pathlib.Path)

Returns the 'path' parameter of the passed click.Context's parent context.

hermes.commands.harvest.util.get_project_path(click_ctx: click.Context) pathlib.Path

Returns the ‘path’ parameter of the passed click.Context’s parent context. Every subcommand has its own click context with the main click context as parent.

Parameters

click_ctx – The subcommand’s click context

Returns

The path parameter of the passed click.Context’s parent path, i.e., the path where the workflow CLI tool was executed, i.e., the root path of the project that the workflow tool is run for.