Skip to content

Commit eb8ab12

Browse files
refactor: [SNOW-1890085] set dbt execute subcommand metavar
1 parent a484b49 commit eb8ab12

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/snowflake/cli/_plugins/dbt/commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def deploy_dbt(
106106
dbt_execute_app = SnowTyperFactory(
107107
name="execute",
108108
help="Execute a dbt command on Snowflake",
109+
subcommand_metavar="DBT_COMMAND",
109110
)
110111
app.add_typer(dbt_execute_app)
111112

src/snowflake/cli/api/commands/snow_typer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def __init__(
210210
short_help: Optional[str] = None,
211211
is_hidden: Optional[Callable[[], bool]] = None,
212212
deprecated: bool = False,
213+
subcommand_metavar: Optional[str] = None,
213214
):
214215
self.name = name
215216
self.help = help
@@ -219,6 +220,7 @@ def __init__(
219220
self.commands_to_register: List[SnowTyperCommandData] = []
220221
self.subapps_to_register: List[SnowTyperFactory] = []
221222
self.callbacks_to_register: List[Callable] = []
223+
self.subcommand_metavar = subcommand_metavar
222224

223225
def create_instance(self) -> SnowTyper:
224226
app = SnowTyper(
@@ -227,6 +229,7 @@ def create_instance(self) -> SnowTyper:
227229
short_help=self.short_help,
228230
hidden=self.is_hidden() if self.is_hidden else False,
229231
deprecated=self.deprecated,
232+
subcommand_metavar=self.subcommand_metavar,
230233
)
231234
# register commands
232235
for command in self.commands_to_register:

0 commit comments

Comments
 (0)