Skip to content

Commit b0fe9cb

Browse files
committed
move desktop command down
1 parent 6389a09 commit b0fe9cb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

qbpm/main.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,6 @@ def from_session(
124124
then_launch(operations.from_session, profile, session_path=session_path, **kwargs)
125125

126126

127-
@main.command()
128-
@click.argument("profile_name")
129-
@click.pass_obj
130-
def desktop(
131-
context: Context,
132-
profile_name: str,
133-
) -> None:
134-
"""Create a desktop file for an existing profile."""
135-
profile = Profile(profile_name, **vars(context))
136-
exit_with(operations.desktop(profile))
137-
138-
139127
@main.command(context_settings={"ignore_unknown_options": True})
140128
@click.argument("profile_name")
141129
@click.argument("qb_args", nargs=-1, type=click.UNPROCESSED)
@@ -192,6 +180,18 @@ def list_(context: Context) -> None:
192180
print(profile.name)
193181

194182

183+
@main.command()
184+
@click.argument("profile_name")
185+
@click.pass_obj
186+
def desktop(
187+
context: Context,
188+
profile_name: str,
189+
) -> None:
190+
"""Create a desktop file for an existing profile."""
191+
profile = Profile(profile_name, **vars(context))
192+
exit_with(operations.desktop(profile))
193+
194+
195195
def then_launch(
196196
operation: Callable[..., bool],
197197
profile: Profile,

0 commit comments

Comments
 (0)