Skip to content

Commit cf5a477

Browse files
refactor: [SNOW-1890085] set dbt execute subcommand metavar
1 parent 6d620c7 commit cf5a477

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
@@ -228,6 +228,7 @@ def __init__(
228228
short_help: Optional[str] = None,
229229
is_hidden: Optional[Callable[[], bool]] = None,
230230
deprecated: bool = False,
231+
subcommand_metavar: Optional[str] = None,
231232
):
232233
self.name = name
233234
self.help = help
@@ -237,6 +238,7 @@ def __init__(
237238
self.commands_to_register: List[SnowTyperCommandData] = []
238239
self.subapps_to_register: List[SnowTyperFactory] = []
239240
self.callbacks_to_register: List[Callable] = []
241+
self.subcommand_metavar = subcommand_metavar
240242

241243
def create_instance(self) -> SnowTyper:
242244
app = SnowTyper(
@@ -245,6 +247,7 @@ def create_instance(self) -> SnowTyper:
245247
short_help=self.short_help,
246248
hidden=self.is_hidden() if self.is_hidden else False,
247249
deprecated=self.deprecated,
250+
subcommand_metavar=self.subcommand_metavar,
248251
)
249252
# register commands
250253
for command in self.commands_to_register:

0 commit comments

Comments
 (0)