Skip to content

Commit

Permalink
Added update-dashboard command
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx committed Sep 27, 2024
1 parent 1d8b01a commit 9eefa40
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/databricks/labs/lsql/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ def create_dashboard(
print(sdk_dashboard.dashboard_id)


@lsql.command
def deploy_dashboard(
w: WorkspaceClient,
folder: Path = Path.cwd(),
*,
catalog: str = "",
database: str = "",
publish: str = "false",
open_browser: str = "false",
):
"""Create a dashboard from queries"""
create_dashboard(w, folder, catalog=catalog, database=database, publish=publish, open_browser=open_browser)


@lsql.command(is_unauthenticated=True)
def fmt(folder: Path = Path.cwd(), *, normalize_case: str = "true", exclude: Iterable[str] = ()):
"""Format SQL files in a folder"""
Expand Down

0 comments on commit 9eefa40

Please sign in to comment.