diff --git a/logfire/_internal/cli.py b/logfire/_internal/cli.py index 275eea3f..8fc6a95b 100644 --- a/logfire/_internal/cli.py +++ b/logfire/_internal/cli.py @@ -86,7 +86,7 @@ def parse_clean(args: argparse.Namespace) -> None: sys.stderr.write(f'No Logfire data found in {data_dir.resolve()}\n') sys.exit(1) - confirm = input(f'The folder {data_dir.resolve()} will be deleted. Are you sure? [N/y]') + confirm = input(f'The folder {data_dir.resolve()} will be deleted. Are you sure? [N/y] ') if confirm.lower() in ('yes', 'y'): shutil.rmtree(data_dir) sys.stderr.write('Cleaned Logfire data.\n') diff --git a/tests/test_cli.py b/tests/test_cli.py index 2ed5425a..e35121ce 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1068,3 +1068,10 @@ def test_projects_use_write_token_error(tmp_dir_cwd: Path, default_credentials: with pytest.raises(LogfireConfigError, match='Error creating project write token.'): main(['projects', 'use', 'myproject', '--org', 'fake_org']) + + +def test_info(capsys: pytest.CaptureFixture[str]) -> None: + main(['info']) + output = capsys.readouterr().err.strip() + assert output.startswith('logfire="') + assert '[related_packages]' in output