Skip to content

Commit 82b3f59

Browse files
committed
Change SIMPLE cli mode to FLOW
1 parent 18e430b commit 82b3f59

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/reference/notebook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import sqlmesh
2929
If desired, you can create the [quickstart example project](../quick_start.md) with the Python `init_example_project` function. The function requires a default SQL dialect for the project's models; this example uses `snowflake`:
3030

3131
```python
32-
from sqlmesh.cli.example_project import init_example_project
32+
from sqlmesh.cli.project_init import init_example_project
3333

34-
init_example_project("path_to_project_directory", dialect="snowflake")
34+
init_example_project("path_to_project_directory", engine_type="snowflake")
3535
```
3636

3737
Alternatively, create the project with a notebook magic:

sqlmesh/cli/project_init.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ProjectTemplate(Enum):
2727

2828
class InitCliMode(Enum):
2929
DEFAULT = "default"
30-
SIMPLE = "simple"
30+
FLOW = "flow"
3131

3232

3333
def _gen_config(
@@ -121,7 +121,7 @@ def _gen_config(
121121
default_configs[ProjectTemplate.EMPTY] = default_configs[ProjectTemplate.DEFAULT]
122122
default_configs[ProjectTemplate.DLT] = default_configs[ProjectTemplate.DEFAULT]
123123

124-
simple_cli_mode = """
124+
flow_cli_mode = """
125125
# Minimal prompts, automatic changes, summary output
126126
# https://sqlmesh.readthedocs.io/en/stable/reference/configuration/#plan
127127
@@ -139,7 +139,7 @@ def _gen_config(
139139
# sqlmesh plan prod # To apply changes to production
140140
"""
141141

142-
return default_configs[template] + (simple_cli_mode if cli_mode == InitCliMode.SIMPLE else "")
142+
return default_configs[template] + (flow_cli_mode if cli_mode == InitCliMode.FLOW else "")
143143

144144

145145
@dataclass
@@ -297,7 +297,7 @@ def init_example_project(
297297

298298
if template == ProjectTemplate.DBT and not Path(root_path, "dbt_project.yml").exists():
299299
raise SQLMeshError(
300-
"Required dbt project file 'dbt_project.yml' not found in the current directory.\n\n Please add it or change directories before running `sqlmesh init` to set up your project."
300+
"Required dbt project file 'dbt_project.yml' not found in the current directory.\n\nPlease add it or change directories before running `sqlmesh init` to set up your project."
301301
)
302302

303303
engine_types = "', '".join(CONNECTION_CONFIG_TO_TYPE)
@@ -492,7 +492,7 @@ def _init_cli_mode_prompt(console: Console) -> InitCliMode:
492492

493493
cli_mode_descriptions = {
494494
InitCliMode.DEFAULT.name: "- See and control every detail",
495-
InitCliMode.SIMPLE.name: " - Automatically run changes and show summary output",
495+
InitCliMode.FLOW.name: " - Automatically run changes and show summary output",
496496
}
497497

498498
display_num_to_cli_mode = _init_display_choices(cli_mode_descriptions, console)

0 commit comments

Comments
 (0)