Skip to content

Commit 198dbb5

Browse files
committed
make commit the default for start and stop commands
1 parent c93e97d commit 198dbb5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/edge_containers_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def start(
266266
autocompletion=all_svc,
267267
show_default=False,
268268
),
269-
commit: bool = typer.Option(False, help="Commits the values to the git repo"),
269+
commit: bool = typer.Option(True, help="Commits the values to the git repo"),
270270
):
271271
"""Start a service"""
272272
try:
@@ -284,7 +284,7 @@ def stop(
284284
autocompletion=running_svc,
285285
show_default=False,
286286
),
287-
commit: bool = typer.Option(False, help="Commits the values to the git repo"),
287+
commit: bool = typer.Option(True, help="Commits the values to the git repo"),
288288
):
289289
"""Stop a service"""
290290
try:

tests/test_argocd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ def test_start_commit(mock_run, ARGOCD, data: Path):
4343

4444
def test_start(mock_run, ARGOCD):
4545
mock_run.set_seq(ARGOCD.checks + ARGOCD.start)
46-
mock_run.run_cli("start bl01t-ea-test-01")
46+
mock_run.run_cli("start bl01t-ea-test-01 --no-commit")
4747

4848

4949
def test_stop_commit(mock_run, ARGOCD, data: Path):
5050
mock_run.set_seq(ARGOCD.checks + ARGOCD.stop_commit)
5151
TMPDIR.mkdir()
5252
shutil.copytree(data / "bl01t-deployment/apps", TMPDIR / "apps")
53-
mock_run.run_cli("stop bl01t-ea-test-01 --commit")
53+
mock_run.run_cli("stop bl01t-ea-test-01")
5454

5555

5656
def test_stop(mock_run, ARGOCD):
5757
mock_run.set_seq(ARGOCD.checks + ARGOCD.stop)
58-
mock_run.run_cli("stop bl01t-ea-test-01")
58+
mock_run.run_cli("stop bl01t-ea-test-01 --no-commit")
5959

6060

6161
def test_ps(mock_run, ARGOCD):

0 commit comments

Comments
 (0)