diff --git a/pls_cli/please.py b/pls_cli/please.py index 1fad60f..2bc52dc 100644 --- a/pls_cli/please.py +++ b/pls_cli/please.py @@ -650,9 +650,10 @@ def docs(): @app.command(rich_help_panel='Utils and Configs') def config(): - """Launch config directory :open_file_folder:""" - center_print(Rule('・Opening config directory・', style='#d77dd8')) - typer.launch(Settings().get_full_settings_path(), locate=True) + """Show config directory path :open_file_folder:""" + config_path = Settings().get_full_settings_path() + center_print(Rule('・Config directory・', style='#d77dd8')) + console.print(f'\n[#61E294]Path:[/] [bold]{config_path}[/]\n') @app.command() diff --git a/pyproject.toml b/pyproject.toml index 2f9c7b1..f9eff51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pls-cli" -version = "0.4.0" +version = "0.4.1" description = "Minimalist and full configurable greetings and TODO list" authors = [ {name = "Felipe Guedes", email = "contatofelipeguedes@gmail.com"} diff --git a/tests/test_pls_cli.py b/tests/test_pls_cli.py index 2028f03..c66c202 100644 --- a/tests/test_pls_cli.py +++ b/tests/test_pls_cli.py @@ -593,12 +593,11 @@ def test_docs_command(mock_launch): ) -@patch('typer.launch') -def test_config_command(mock_launch): +def test_config_command(): result = runner.invoke(app, ['config']) assert result.exit_code == 0 - assert 'Opening config directory' in result.stdout - assert mock_launch.called + assert 'Config directory' in result.stdout + assert 'Path:' in result.stdout @patch( diff --git a/uv.lock b/uv.lock index 483eeaa..5f52d24 100644 --- a/uv.lock +++ b/uv.lock @@ -1133,7 +1133,7 @@ wheels = [ [[package]] name = "pls-cli" -version = "0.4.0" +version = "0.4.1" source = { editable = "." } dependencies = [ { name = "rich" },