You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Features, Feedback, and Bugs: https://github.com/bostrt/quikey
37
+
"""
32
38
ctx.obj= {'database': get_database()}
33
39
34
-
@cli.command()
40
+
@cli.command(help='Add a new phrase')
35
41
@click.option('--name' ,'-n', required=True, help='Name of quikey phrase to add.')
36
42
@click.option('--tag', '-t', multiple=True, help='Optional tags for the phrase. You can specify this option multiple times.')
37
43
@click.option('--phrase', '-p', help='The full phrase to add. If this option is not specified then your default editor ($EDITOR) will be used.')
@@ -58,7 +64,7 @@ def add(ctx,name,phrase,tag):
58
64
db.put(name, contents, tag)
59
65
click.echo('quikey phrase with key of %s added.'%name)
60
66
61
-
@cli.command()
67
+
@cli.command(help='Edit an existing phrase')
62
68
@click.option('--name', '-n', help='Name of quikey phrase to edit.')
63
69
@click.pass_context
64
70
defedit(ctx,name):
@@ -83,7 +89,7 @@ def edit(ctx,name):
83
89
click.echo('quikey phrase with key of %s does not exist.'%name)
84
90
85
91
86
-
@cli.command()
92
+
@cli.command(help='Remove a phrase')
87
93
@click.option('--name', '-n', help='Name of quikey phrase to remove.')
88
94
@click.pass_context
89
95
defrm(ctx,name):
@@ -101,7 +107,7 @@ def rm(ctx,name):
101
107
else:
102
108
click.echo('quikey phrase with key of %s does not exist.'%name)
103
109
104
-
@cli.command()
110
+
@cli.command(help='List all phrases')
105
111
@click.option('--show-all', is_flag=True, help='Show the entire quikey phrase instead of a shortened version '
106
112
'for long quikey phrases.')
107
113
@click.pass_context
@@ -117,7 +123,7 @@ def ls(ctx, show_all):
117
123
output=AsciiTable(table)
118
124
click.echo(output.table)
119
125
120
-
@cli.command()
126
+
@cli.command(help='Import from AutoKey')
121
127
@click.option('--location', '-l', default=BaseDirectory.xdg_config_home+"/autokey/data/", show_default=True, help='Location of top level directory to import from autokey')
0 commit comments