Skip to content

Commit b66792a

Browse files
authored
🔀 Fix/command config (#120)
* 🩹 config command now only show the path * 🔖 Release 0.4.1
1 parent 89accdc commit b66792a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

pls_cli/please.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,10 @@ def docs():
650650

651651
@app.command(rich_help_panel='Utils and Configs')
652652
def config():
653-
"""Launch config directory :open_file_folder:"""
654-
center_print(Rule('・Opening config directory・', style='#d77dd8'))
655-
typer.launch(Settings().get_full_settings_path(), locate=True)
653+
"""Show config directory path :open_file_folder:"""
654+
config_path = Settings().get_full_settings_path()
655+
center_print(Rule('・Config directory・', style='#d77dd8'))
656+
console.print(f'\n[#61E294]Path:[/] [bold]{config_path}[/]\n')
656657

657658

658659
@app.command()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pls-cli"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "Minimalist and full configurable greetings and TODO list"
55
authors = [
66
{name = "Felipe Guedes", email = "contatofelipeguedes@gmail.com"}

tests/test_pls_cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,12 +593,11 @@ def test_docs_command(mock_launch):
593593
)
594594

595595

596-
@patch('typer.launch')
597-
def test_config_command(mock_launch):
596+
def test_config_command():
598597
result = runner.invoke(app, ['config'])
599598
assert result.exit_code == 0
600-
assert 'Opening config directory' in result.stdout
601-
assert mock_launch.called
599+
assert 'Config directory' in result.stdout
600+
assert 'Path:' in result.stdout
602601

603602

604603
@patch(

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)