Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pls_cli/please.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down
7 changes: 3 additions & 4 deletions tests/test_pls_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.