@shortcut-cli/shortcut-cli 3.2.4 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,22 +1,25 @@
1
- # shortcut-cli (formerly clubhouse-cli)
1
+ # shortcut-cli
2
2
 
3
- [![CircleCI](https://circleci.com/gh/shortcut-cli/shortcut-cli/tree/main.svg?style=svg)](https://circleci.com/gh/shortcut-cli/shortcut-cli/tree/main)
3
+ [![Version](https://badge.fury.io/js/@shortcut-cli%2Fshortcut-cli.svg)](https://badge.fury.io/js/@shortcut-cli%2Fshortcut-cli)
4
+ [![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/shortcut-cli/shortcut-cli/blob/main/LICENSE)
5
+ [![PRs welcome!](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]()
4
6
 
5
- This is a command line interface for [Shortcut](https://app.shortcut.com), focused on the display and manipulation of stories. With this, you can run custom searches, save them as local workspaces, and recall those workspaces. You can also view full stories, update most attributes on a story, and create brand new stories quickly.
7
+ This is a community-driven command line interface for [Shortcut](https://shortcut.com), focused on the display and manipulation of stories. With this, you can run custom searches, save them as local workspaces, and recall those workspaces. You can also view full stories, update most attributes on a story, and create brand new stories quickly.
6
8
 
7
9
  ## Table of Contents
8
- - [Usage & Commands](#usage)
9
- - [Install](#install)
10
- - [Search](#search)
11
- - [Story](#story)
12
- - [Story Creation](#story-creation)
13
- - [Workspace](#workspace)
14
- - [Members](#members)
15
- - [Epics](#epics)
16
- - [Workflows](#workflows)
17
- - [Projects](#projects)
18
- - [Development](#development)
19
- - [Acknowledgments](#acknowledgments)
10
+
11
+ - [Usage & Commands](#usage)
12
+ - [Install](#install)
13
+ - [Search](#search)
14
+ - [Story](#story)
15
+ - [Story Creation](#story-creation)
16
+ - [Workspace](#workspace)
17
+ - [Members](#members)
18
+ - [Epics](#epics)
19
+ - [Workflows](#workflows)
20
+ - [Projects](#projects)
21
+ - [Development](#development)
22
+ - [Acknowledgments](#acknowledgments)
20
23
 
21
24
  ## Usage
22
25
 
@@ -24,12 +27,12 @@ This is a command line interface for [Shortcut](https://app.shortcut.com), focus
24
27
 
25
28
  Install via npm:
26
29
 
27
- ~~~sh
28
- $ npm install @shortcut-cli/shortcut-cli -g
29
- $ short install
30
- ~~~
30
+ ```sh
31
+ npm install @shortcut-cli/shortcut-cli -g
32
+ short install
33
+ ```
31
34
 
32
- ~~~
35
+ ```
33
36
  Usage: short install [options]
34
37
 
35
38
  Install access token for Shortcut API
@@ -40,13 +43,15 @@ $ short install
40
43
  -V, --version output the version number
41
44
  -f, --force Force install/reinstall
42
45
  -h, --help output usage information
43
- ~~~
46
+ ```
44
47
 
45
48
  You may also provide a Shortcut API token via environment variable `SHORTCUT_API_TOKEN`.
46
- ~~~sh
47
- $ SHORTCUT_API_TOKEN=foobar short story 3300
48
- ~~~
49
- ~~~
49
+
50
+ ```sh
51
+ SHORTCUT_API_TOKEN=foobar short story 3300
52
+ ```
53
+
54
+ ```
50
55
  Usage: short [options] [command]
51
56
 
52
57
  A command line tool for searching, viewing, and updating shortcut.com stories
@@ -70,14 +75,14 @@ $ SHORTCUT_API_TOKEN=foobar short story 3300
70
75
  projects list or search projects
71
76
  workspace list stories matching saved workspace query
72
77
  help [cmd] display help for [cmd]
73
- ~~~
78
+ ```
74
79
 
75
80
  ### Search
76
81
 
77
- ~~~
82
+ ```
78
83
  Usage: short find [options] [SEARCH OPERATORS]
79
84
 
80
- Search through Shorcut stories. Arguments (non-flag/options) will
85
+ Search through Shortcut stories. Arguments (non-flag/options) will
81
86
  be passed to Shortcut story search API as search operators. Passing '%self%' as
82
87
  a search operator argument will be replaced by your mention name. Note that passing search
83
88
  operators and options (e.g. --owner foobar) will use the options as extra filtering
@@ -106,12 +111,12 @@ $ SHORTCUT_API_TOKEN=foobar short story 3300
106
111
  -r, --sort [field] Sort stories by field (accessor[:asc|desc][,next])
107
112
  -f, --format [template] Format each story output by template
108
113
  -h, --help output usage information
109
- ~~~
114
+ ```
110
115
 
111
116
  Example output
112
117
 
113
- ~~~
114
- $ short search -o 'josh' -s 'Review'
118
+ ```
119
+ short search -o 'josh' -s 'Review'
115
120
  #1480 Create Thinga-ma-bob
116
121
  Type: feature/3
117
122
  Label: #512 client_web
@@ -123,16 +128,16 @@ $ short search -o 'josh' -s 'Review'
123
128
  URL: https://app.shortcut.com/story/1480
124
129
 
125
130
  # Custom formatting is an option
126
- $ short search -o 'josh' -s 'Review' -f $'%i\t%s\t%t\n\t%o'
131
+ short search -o 'josh' -s 'Review' -f $'%i\t%s\t%t\n\t%o'
127
132
  1480 Code Review (#500000020) Create Thinga-ma-bob
128
133
  Josh (josh)
129
- ~~~
134
+ ```
130
135
 
131
136
  #### Story Output Formatting
132
137
 
133
138
  Templating variables:
134
139
 
135
- ~~~
140
+ ```
136
141
  %id Print ID of story
137
142
  %t Print title/name of story
138
143
  %a Print archived status of story
@@ -151,8 +156,8 @@ Templating variables:
151
156
  %updated Print story updated timestamp (if different from created)
152
157
  %j Print full story as formatted JSON
153
158
  %gb Print Git integration branch name
154
- %gbs Pring Git integration branch short name
155
- ~~~
159
+ %gbs Print Git integration branch short name
160
+ ```
156
161
 
157
162
  Note that the `$` string operator in bash is helpful in allowing `\t` (tab) and `\n` (newline) literals in the formatting string. Otherwise, you can actually just type a newline character.
158
163
 
@@ -162,7 +167,7 @@ The default sorting for stories found is `state.position:asc,position:asc`, whic
162
167
 
163
168
  ### Story
164
169
 
165
- ~~~
170
+ ```
166
171
  Usage: short story [options] <id>
167
172
 
168
173
  Update and/or display story details
@@ -200,12 +205,12 @@ The default sorting for stories found is `state.position:asc,position:asc`, whic
200
205
  --task-complete [text] Toggle completion of story task matching text
201
206
  -y, --type [name] Set type of story
202
207
  -h, --help output usage information
203
- ~~~
208
+ ```
204
209
 
205
210
  Example output:
206
211
 
207
- ~~~
208
- $ short story 1480 -c 'This is a commend' -o josh
212
+ ```
213
+ short story 1480 -c 'This is a commend' -o josh
209
214
  #1480 Create Thinga-ma-bob
210
215
  Desc: Create a thing to display:
211
216
  Owners: Josh (josh)
@@ -214,13 +219,13 @@ Label: #512 client_web
214
219
  Project: #14 Customer
215
220
  State: #500000020 Code Review
216
221
  URL: https://app.shortcut.com/story/1480
217
- Comment: This is a commend
222
+ Comment: This is a comment
218
223
  Josh at: 2017-10-25T16:17:04Z
219
- ~~~
224
+ ```
220
225
 
221
226
  ### Story Creation
222
227
 
223
- ~~~
228
+ ```
224
229
  Usage: short create [options]
225
230
 
226
231
  create a story with provided details
@@ -236,20 +241,20 @@ Comment: This is a commend
236
241
  -l, --label [id|name] Stories with label id/name, by regex
237
242
  -o, --owners [id|name] Set owners of story, comma-separated
238
243
  -O, --open Open story in browser
239
- -p, --project [id|name] Set project of story, required
244
+ -p, --project [id|name] Set project of story, required if --state is not set
240
245
  -T, --team [id|name] Set team of story
241
246
  -t, --title [text] Set title of story, required
242
- -s, --state [id|name] Set workflow state of story
247
+ -s, --state [id|name] Set workflow state of story, required if --project is not set
243
248
  -y, --type [name] Set type of story, default: feature
244
249
  -h, --help output usage information
245
250
  --git-branch Checkout git branch from story slug <mention-name>/ch<id>/<type>-<title>
246
251
  as required by the Git integration: https://bit.ly/2RKO1FF
247
252
  --git-branch-short Checkout git branch from story slug <mention-name>/ch<id>/<title>
248
- ~~~
253
+ ```
249
254
 
250
255
  ### Workspace
251
256
 
252
- ~~~
257
+ ```
253
258
  Usage: short workspace [NAME] [options]
254
259
 
255
260
  List stories matching saved workspace query
@@ -262,11 +267,11 @@ Comment: This is a commend
262
267
  -u, --unset [name] Force unset saved workspace
263
268
  -q, --quiet Print only resulting story output, no loading dialog
264
269
  -h, --help output usage information
265
- ~~~
270
+ ```
266
271
 
267
272
  ### Members
268
273
 
269
- ~~~
274
+ ```
270
275
  Usage: short members [options]
271
276
 
272
277
  Display members available for stories
@@ -277,11 +282,11 @@ Comment: This is a commend
277
282
  -s, --search [query] List members with name containing query
278
283
  -d, --disabled List members including disabled
279
284
  -h, --help output usage information
280
- ~~~
285
+ ```
281
286
 
282
287
  ### Epics
283
288
 
284
- ~~~
289
+ ```
285
290
  Usage: short epics [options]
286
291
 
287
292
  Display epics available for stories
@@ -297,13 +302,13 @@ Comment: This is a commend
297
302
  -t, --title [query] List epics with name/title containing query
298
303
  -s, --started List epics that have been started
299
304
  -h, --help output usage information
300
- ~~~
305
+ ```
301
306
 
302
307
  #### Epic Output Formatting
303
308
 
304
309
  Templating variables:
305
310
 
306
- ~~~
311
+ ```
307
312
  %id Print ID of epic
308
313
  %t Print title/name of epic
309
314
  %m Print milestone of epic
@@ -317,11 +322,11 @@ Templating variables:
317
322
  %a Print archived status of epic
318
323
  %st Print started status of epic
319
324
  %co Print completed status of epic
320
- ~~~
325
+ ```
321
326
 
322
327
  ### Workflows
323
328
 
324
- ~~~
329
+ ```
325
330
  Usage: short workflows [options]
326
331
 
327
332
  Display workflows/states available for stories
@@ -331,11 +336,11 @@ Templating variables:
331
336
 
332
337
  -s, --search [query] List states containing query
333
338
  -h, --help output usage information
334
- ~~~
339
+ ```
335
340
 
336
341
  ### Projects
337
342
 
338
- ~~~
343
+ ```
339
344
  Usage: short projects [options]
340
345
 
341
346
  Display projects available for stories
@@ -347,33 +352,32 @@ Templating variables:
347
352
  -d, --detailed List more details for each project
348
353
  -t, --title [query] List projects with name/title containing query
349
354
  -h, --help output usage information
350
- ~~~
355
+ ```
351
356
 
352
357
  ## Development
353
358
 
354
- You can use typescript watcher which will recompile your code automatically:
359
+ You can use TypeScript watcher which will recompile your code automatically:
355
360
 
356
- ~~~sh
357
- $ npm run build:watch
358
- ~~~
361
+ ```sh
362
+ npm run build:watch
363
+ ```
359
364
 
360
- You can run shortcut-cli with typescript map enabled:
365
+ You can run shortcut-cli with TypeScript map enabled:
361
366
 
362
- ~~~sh
363
- $ npm start -- story 1234
364
- ~~~
367
+ ```sh
368
+ npm start -- story 1234
369
+ ```
365
370
 
366
371
  ## Acknowledgments
367
372
 
368
- - [Repository for this code](https://github.com/shortcut-cli/shortcut-cli)
369
- - [NPM registry for this code](https://www.npmjs.com/package/@shortcut-cli/shortcut-cli)
370
- - [Shortcut API](https://shortcut.com/api/rest/v3)
371
- - Official [@useshortcut/client](https://github.com/useshortcut/clubhouse-lib)
373
+ - [Repository for this code](https://github.com/shortcut-cli/shortcut-cli)
374
+ - [NPM registry for this code](https://www.npmjs.com/package/@shortcut-cli/shortcut-cli)
375
+ - [Shortcut API](https://shortcut.com/api/rest/v3)
376
+ - Official [@shortcut/client](https://github.com/useshortcut/shortcut-client-js)
377
+ - [joshbeckman](https://github.com/joshbeckman), [j-martin](https://github.com/j-martin), [joshmfrankel](https://github.com/joshmfrankel), and [ohe](https://github.com/ohe) who created and contributed to this project
372
378
 
373
379
  ## Contributors
374
- - [andjosh](https://github.com/andjosh)
375
- - [j-martin](https://github.com/j-martin)
376
- - [joshmfrankel](https://github.com/joshmfrankel)
377
- - [ohe](https://github.com/ohe)
378
380
 
379
- See the [full list](https://github.com/shortcut-cli/shortcut-cli/graphs/contributors).
381
+ <a href="https://github.com/shortcut-cli/shortcut-cli/graphs/contributors">
382
+ <img src="https://contrib.rocks/image?repo=shortcut-cli/shortcut-cli" />
383
+ </a>