Skip to content

Commit f0900f6

Browse files
fix: add todo for profile
1 parent 47b9874 commit f0900f6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ mcpm profile rm PROFILE # Remove an MCPM profile
7474
mcpm profile remove PROFILE # Remove an MCPM profile
7575
mcpm profile rename PROFILE # Rename an MCPM profile
7676
77-
mcpm activate PROFILE # activate a profile for a client
78-
mcpm deactivate PROFILE # deactivate a profile for a client
77+
mcpm activate PROFILE # activate a profile for a client
78+
mcpm deactivate # deactivate a profile for a client
7979
8080
# router
8181
mcpm router on -p port -h host # start router daemon

src/mcpm/commands/profile.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def profile():
1818

1919
@click.command()
2020
@click.argument("profile_name")
21-
def activate(profile_name):
21+
@click.option("--client", "-c", default="client", help="Client of the profile")
22+
def activate(profile_name, client):
2223
"""Activate a profile.
2324
2425
Sets the specified profile as the active profile.
@@ -35,9 +36,12 @@ def activate(profile_name):
3536
else:
3637
console.print(f"[bold red]Error:[/] Failed to activate profile '{profile_name}'.")
3738

39+
# TODO: add url to the client config
40+
3841

3942
@click.command()
40-
def deactivate():
43+
@click.option("--client", "-c", default="client", help="Client of the profile")
44+
def deactivate(client):
4145
"""Deactivate a profile.
4246
4347
Unsets the active profile.
@@ -54,6 +58,8 @@ def deactivate():
5458
else:
5559
console.print(f"[bold red]Error:[/] Failed to deactivate profile '{active_profile}'.")
5660

61+
# TODO: remove url from the client config
62+
5763

5864
@profile.command(name="ls")
5965
@click.option("--verbose", "-v", is_flag=True, help="Show detailed server information")

0 commit comments

Comments
 (0)