Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

fsh api list should accept a positional argument #1012

Open
@rabbah

Description

@rabbah

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions