clubhouse-cli
Advanced tools
Comparing version 1.16.1 to 1.17.0
@@ -17,2 +17,7 @@ # Changelog | ||
## [1.17.0] - 2019-03-19 | ||
### Added | ||
- Running tests on CircleCI. | ||
- Allow for full JSON output in story format. | ||
## [1.16.1] - 2019-03-13 | ||
@@ -19,0 +24,0 @@ ### Fixed |
{ | ||
"name": "clubhouse-cli", | ||
"version": "1.16.1", | ||
"version": "1.17.0", | ||
"description": "A command line tool for viewing, creating and updating clubhouse.io stories", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# clubhouse-cli | ||
[![CircleCI](https://circleci.com/gh/andjosh/clubhouse-cli.svg?style=svg)](https://circleci.com/gh/andjosh/clubhouse-cli) | ||
This is a command line interface for [Clubhouse](https://app.clubhouse.io), 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. | ||
@@ -116,2 +118,3 @@ | ||
%u Print story updated timestamp (if different from created) | ||
%j Print full story as formatted JSON | ||
~~~ | ||
@@ -118,0 +121,0 @@ |
@@ -210,5 +210,7 @@ const { execSync } = require('child_process'); | ||
const owners = story.owners.map(o => `${o.profile.name} (${o.profile.mention_name})`); | ||
const url = `https://app.clubhouse.io/story/${story.id}`; | ||
const project = ` ${story.project.name} (#${story.project.id})`; | ||
log( | ||
format | ||
.replace(/%j/, JSON.stringify({ ...story, url }, null, 2)) | ||
.replace(/%i/, chalk.blue.bold(`${story.id}`)) | ||
@@ -222,8 +224,8 @@ .replace(/%t/, chalk.blue(`${story.name}`)) | ||
/%E/, | ||
story.epic_id ? ` ${(story.epic || {}).name} (#${story.epic_id})` : '_' | ||
story.epic_id ? `${(story.epic || {}).name} (#${story.epic_id})` : '_' | ||
) | ||
.replace(/%p/, ` ${story.project.name} (#${story.project.id})`) | ||
.replace(/%p/, project) | ||
.replace(/%o/, owners.join(', ') || '_') | ||
.replace(/%s/, `${(story.state || {}).name} (#${story.workflow_state_id})`) | ||
.replace(/%u/, `https://app.clubhouse.io/story/${story.id}`) | ||
.replace(/%u/, url) | ||
.replace(/%c/, story.created_at) | ||
@@ -230,0 +232,0 @@ .replace(/%u/, story.updated_at !== story.created_at ? story.updated_at : '_') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61838
26
427
324