pi_portal.cli_commands.mixins.state.CommandManagedStateMixin

class pi_portal.cli_commands.mixins.state.CommandManagedStateMixin[source]

Bases: object

Provide configured state to a CLI command.

load_state(debug: bool, file_path: str = '/etc/pi_portal/config.json') None[source]

Load and configure state.

Parameters:
  • debug (bool) – Enable or disable debug logs.

  • file_path (str) – The path to the file to load.