|
6 | 6 | from helm_values_manager.commands.add_value_config_command import AddValueConfigCommand
|
7 | 7 | from helm_values_manager.commands.init_command import InitCommand
|
8 | 8 | from helm_values_manager.commands.set_value_command import SetValueCommand
|
| 9 | +from helm_values_manager.models.config_metadata import ConfigMetadata |
9 | 10 | from helm_values_manager.utils.logger import HelmLogger
|
10 | 11 |
|
11 | 12 | COMMAND_INFO = "helm values-manager"
|
@@ -48,10 +49,14 @@ def init(
|
48 | 49 | @app.command("add-value-config")
|
49 | 50 | def add_value_config(
|
50 | 51 | path: str = typer.Option(..., "--path", "-p", help="Configuration path (e.g., 'app.replicas')"),
|
51 |
| - description: str = typer.Option("", "--description", "-d", help="Description of what this configuration does"), |
52 |
| - required: bool = typer.Option(False, "--required", "-r", help="Whether this configuration is required"), |
| 52 | + description: str = typer.Option( |
| 53 | + ConfigMetadata.DEFAULT_DESCRIPTION, "--description", "-d", help="Description of what this configuration does" |
| 54 | + ), |
| 55 | + required: bool = typer.Option( |
| 56 | + ConfigMetadata.DEFAULT_REQUIRED, "--required", "-r", help="Whether this configuration is required" |
| 57 | + ), |
53 | 58 | sensitive: bool = typer.Option(
|
54 |
| - False, |
| 59 | + ConfigMetadata.DEFAULT_SENSITIVE, |
55 | 60 | "--sensitive",
|
56 | 61 | "-s",
|
57 | 62 | help="Whether this configuration contains sensitive data (coming in v0.2.0)",
|
|
0 commit comments