shell icon indicating copy to clipboard operation
shell copied to clipboard

fsh api list should accept a positional argument

Open rabbah opened this issue 7 years ago • 0 comments

Note the error message that's printed... in any case, per wsk the positional argument is supported for filtering.

> fsh api list "/club" 
{
  isUsageError: true,
  name: "UsageError",
  message: {
  },
  raw: {
    message: "This command accepts no positional arguments",
    usage: {
      command: "list",
      strict: "list",
      docs: "list all APIs",
      example: "wsk api list",
      optional: [
        {
          name: "--limit",
          alias: "-l",
          numeric: true,
          docs: "show at most N"
        }, 
        {
          name: "--skip",
          alias: "-s",
          numeric: true,
          docs: "start from N"
        }, 
        {
          name: "--count",
          boolean: true,
          docs: "return a count, rather than the records"
        }
      ],
      parents: [
        {
          command: "wsk"
        }, 
        {
          command: "wsk api"
        }
      ]
    }
  },
  code: 497
}

rabbah avatar Jun 14 '18 01:06 rabbah