Skip to content

Commit 9008962

Browse files
committed
docs: use descriptive command names in CLI for better clarity
1 parent e02d636 commit 9008962

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lsp_client/cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def hover(
1818
raise typer.Exit()
1919

2020

21-
@app.command(name="def")
21+
@app.command()
2222
def definition(
2323
path: str = typer.Argument(..., help="Path to the file"),
2424
line: int = typer.Argument(..., help="Line number (0-indexed)"),
@@ -31,7 +31,7 @@ def definition(
3131
raise typer.Exit()
3232

3333

34-
@app.command(name="ref")
34+
@app.command()
3535
def references(
3636
path: str = typer.Argument(..., help="Path to the file"),
3737
line: int = typer.Argument(..., help="Line number (0-indexed)"),
@@ -44,7 +44,7 @@ def references(
4444
raise typer.Exit()
4545

4646

47-
@app.command(name="impl")
47+
@app.command()
4848
def implementation(
4949
path: str = typer.Argument(..., help="Path to the file"),
5050
line: int = typer.Argument(..., help="Line number (0-indexed)"),
@@ -57,7 +57,7 @@ def implementation(
5757
raise typer.Exit()
5858

5959

60-
@app.command(name="type-def")
60+
@app.command(name="type-definition")
6161
def type_definition(
6262
path: str = typer.Argument(..., help="Path to the file"),
6363
line: int = typer.Argument(..., help="Line number (0-indexed)"),
@@ -70,7 +70,7 @@ def type_definition(
7070
raise typer.Exit()
7171

7272

73-
@app.command(name="sym")
73+
@app.command()
7474
def symbols(
7575
path: str = typer.Argument(..., help="Path to the file"),
7676
):
@@ -81,7 +81,7 @@ def symbols(
8181
raise typer.Exit()
8282

8383

84-
@app.command(name="ws-sym")
84+
@app.command(name="workspace-symbols")
8585
def workspace_symbols(
8686
query: str = typer.Argument(..., help="Search query for workspace symbols"),
8787
):
@@ -92,7 +92,7 @@ def workspace_symbols(
9292
raise typer.Exit()
9393

9494

95-
@app.command(name="rn")
95+
@app.command()
9696
def rename(
9797
path: str = typer.Argument(..., help="Path to the file"),
9898
line: int = typer.Argument(..., help="Line number (0-indexed)"),

0 commit comments

Comments
 (0)