@jacebenson/jsn 0.0.9 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacebenson/jsn",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "A command-line interface for ServiceNow that follows the Unix philosophy: simple, composable, and scriptable.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -139,4 +139,6 @@ export const cli = yargs(hideBin(process.argv))
139
139
  .version(false)
140
140
  .strictCommands()
141
141
  .strictOptions(false)
142
- .epilogue('LEARN MORE\n Use "jsn <command> --help" for more information about a command.');
142
+ .epilogue('TIPS\n'
143
+ + ' --query is available on every list command (e.g. "incidents list --query priority=1")\n'
144
+ + ' Use "jsn <command> --help" for details, or "jsn <command> list --help" for list options');
@@ -9,7 +9,7 @@ export function buildTicketCommands(table, displayName, alias, defaultColumns, s
9
9
  return {
10
10
  command: `${displayName} [subcommand]`,
11
11
  aliases: [table, alias],
12
- describe: `Manage ${displayName}`,
12
+ describe: `Manage ${displayName} (e.g. "${displayName} list --query priority=1")`,
13
13
  builder: (yargs) => {
14
14
  return yargs
15
15
  .command({
@@ -213,7 +213,7 @@ export function buildDevCmd(name, table, aliases, defaultColumns, wrap, opts = {
213
213
  return {
214
214
  command: `${name} [subcommand]`,
215
215
  aliases: aliases || [],
216
- describe: `Manage ${name}`,
216
+ describe: `Manage ${name} (e.g. "${name} list --query nameLIKEincident")`,
217
217
  builder,
218
218
  handler: (argv) => {
219
219
  if (argv.help) return;
@@ -22,7 +22,7 @@ function getDefaultColumns(table) {
22
22
  export function recordsCmd(wrap) {
23
23
  return {
24
24
  command: 'records <subcommand>',
25
- describe: 'Query and manage records in any table',
25
+ describe: 'Query and manage records in any table (e.g. "records list --table incident --query priority=1")',
26
26
  builder: (yargs) => {
27
27
  return yargs
28
28
  .command({
@@ -4,7 +4,7 @@ export function ticketsCmd(wrap) {
4
4
  return {
5
5
  command: 'tickets [subcommand]',
6
6
  aliases: ['ticket'],
7
- describe: 'Query generic tickets',
7
+ describe: 'Query generic tickets (e.g. "tickets list --query active=true")',
8
8
  builder: (yargs) => {
9
9
  return yargs
10
10
  .command({