Skip to content

Commit 5e2d27d

Browse files
committed
refactor: move cli into module
1 parent 9008962 commit 5e2d27d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/lsp_client/cli/__init__.py

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

2020

21-
@app.command()
21+
@app.command(name="def")
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()
34+
@app.command(name="ref")
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()
47+
@app.command(name="impl")
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-definition")
60+
@app.command(name="typedef")
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()
73+
@app.command(name="sym")
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="workspace-symbols")
84+
@app.command(name="wssym")
8585
def workspace_symbols(
8686
query: str = typer.Argument(..., help="Search query for workspace symbols"),
8787
):

src/lsp_client/cli/model.py

Whitespace-only changes.

0 commit comments

Comments
 (0)