Coverage for /home/runner/work/bijux-cli/bijux-cli/src/bijux_cli/core/constants.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.10.4, created at 2025-08-19 23:36 +0000

1# SPDX-License-Identifier: MIT 

2# Copyright © 2025 Bijan Mousavi 

3 

4"""Defines shared constants and help text for the Bijux CLI. 

5 

6This module centralizes constant values used throughout the application, 

7such as default timeouts and standardized help messages for common CLI flags. 

8This practice avoids magic strings and numbers, improving maintainability and 

9ensuring consistency across all commands. 

10""" 

11 

12from __future__ import annotations 

13 

14HELP_DEBUG = "Enable diagnostics to stderr." 

15HELP_VERBOSE = "Include extra runtime details." 

16HELP_QUIET = "Suppress normal output; exit code still indicates success/failure." 

17HELP_NO_PRETTY = "Disable pretty‑printing (indentation) in JSON/YAML output." 

18HELP_FORMAT = "Machine‑readable output format (json|yaml); defaults to json." 

19HELP_FORMAT_HELP = "Output format: human (default), json, yaml." 

20 

21DEFAULT_COMMAND_TIMEOUT = 30.0