API-CLI

 view release on metacpan or  search on metacpan

examples/bash/digitaloceancl.bash  view on Meta::CPAN

      done
      __digitaloceancl_dynamic_comp 'options' "$options_spec"

      return 1
    else
      return 0
    fi
}


complete -o default -F _digitaloceancl digitaloceancl

examples/bash/githubcl.bash  view on Meta::CPAN

      done
      __githubcl_dynamic_comp 'options' "$options_spec"

      return 1
    else
      return 0
    fi
}


complete -o default -F _githubcl githubcl

examples/bash/metacpancl.bash  view on Meta::CPAN

      done
      __metacpancl_dynamic_comp 'options' "$options_spec"

      return 1
    else
      return 0
    fi
}


complete -o default -F _metacpancl metacpancl

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: object
        ref:
          type: string
        url:
          type: string
      type: object
    headBranchBody:
      properties:
        force:
          description: Boolean indicating whether to force the update or to make sure
            the update is a fast-forward update. The default is false, so leaving
            this out or setting it to false will make sure you’re not overwriting
            work.
          type: boolean
        sha:
          description: String of the SHA1 value to set this reference to.
          type: string
      required:
      - sha
      - force
      type: object

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: array
      type: object
    search-repositories:
      properties:
        items:
          items:
            properties:
              created_at:
                description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
                type: string
              default_branch:
                type: string
              description:
                type: string
              fork:
                type: boolean
              forks:
                type: integer
              forks_count:
                type: integer
              full_name:

examples/githubcl-appspec.yaml  view on Meta::CPAN

          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /issues:
      get:
        description: |
          List issues.
          List all issues across all the authenticated user's visible repositories.
        parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &1
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &2
          - open
          - closed
          in: query
          name: state
          required: true
          type: string
        - description: String list of comma separated Label names. Example - bug,ui,@high.
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum: &3
          - created
          - updated
          - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum: &4
          - asc
          - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-appspec.yaml  view on Meta::CPAN

      get:
        description: Find repositories by keyword. Note, this legacy method does not
          follow the v3 pagination pattern. This method returns up to 100 results
          per page and pages can be fetched using the start_page parameter.
        parameters:
        - description: The search term
          in: path
          name: keyword
          required: true
          type: string
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &6
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: Filter results by language
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

              for details.
    /legacy/user/search/{keyword}:
      get:
        description: Find users by keyword.
        parameters:
        - description: The search term
          in: path
          name: keyword
          required: true
          type: string
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &8
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: The page number to fetch
          in: query

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: OK
            schema:
              $ref: '#/definitions/notifications'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      put:
        description: |
          Mark as read.
          Marking a notification as "read" removes it from the default view on GitHub.com.
        parameters:
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.
          in: header
          name: Accept
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

      get:
        description: |
          List issues.
          List all issues for a given organization for the authenticated user.
        parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &10
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &11
          - open
          - closed
          in: query
          name: state
          required: true
          type: string
        - description: String list of comma separated Label names. Example - bug,ui,@high.
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum: &12
          - created
          - updated
          - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum: &13
          - asc
          - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-appspec.yaml  view on Meta::CPAN

              for details.
    /orgs/{org}/repos:
      get:
        description: List repositories for the specified org.
        parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          enum: &14
          - all
          - public
          - private
          - forks
          - sources
          - member
          in: query
          name: type
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: newes
          enum: &15
          - newes
          - oldes
          - watchers
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &16
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &17
          - open
          - closed
          in: query
          name: state
          required: true
          type: string
        - description: String list of comma separated Label names. Example - bug,ui,@high.
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum: &18
          - created
          - updated
          - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum: &19
          - asc
          - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: open
          description: String to filter by state.
          enum: &21
          - open
          - closed
          in: query
          name: state
          type: string
        - description: Ignored without 'sort' parameter.
          in: query
          name: direction
          type: string
        - default: due_date
          description: ''
          enum: &22
          - due_date
          - completeness
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

            schema:
              $ref: '#/definitions/notifications'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      put:
        description: |
          Mark notifications as read in a repository.
          Marking all notifications in a repository as "read" removes them from the
          default view on GitHub.com.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: open
          description: String to filter by state.
          enum: &23
          - open
          - closed
          in: query
          name: state
          type: string
        - description: |
            Filter pulls by head user and branch name in the format of 'user:ref-name'.
            Example: github:new-script-format.

examples/githubcl-appspec.yaml  view on Meta::CPAN

            schema:
              $ref: '#/definitions/pulls'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/pulls/comments:
      get:
        description: |
          List comments in a repository.
          By default, Review Comments are ordered by ascending ID.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-appspec.yaml  view on Meta::CPAN

          name: repo
          required: true
          type: string
        - enum: &25
          - tarball
          - zipball
          in: path
          name: archive_format
          required: true
          type: string
        - description: Valid Git reference, defaults to 'master'.
          in: path
          name: path
          required: true
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.

examples/githubcl-appspec.yaml  view on Meta::CPAN

            schema:
              $ref: '#/definitions/repositories'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /search/code:
      get:
        description: Search code.
        parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &26
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported code

examples/githubcl-appspec.yaml  view on Meta::CPAN

              $ref: '#/definitions/search-code'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /search/issues:
      get:
        description: Find issues by state and keyword. (This method returns up to
          100 results per page.)
        parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &28
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: 'The q search term can also contain any combination of the
            supported issue search qualifiers:'

examples/githubcl-appspec.yaml  view on Meta::CPAN

            schema:
              $ref: '#/definitions/search-issues'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /search/repositories:
      get:
        description: Search repositories.
        parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &30
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported repository

examples/githubcl-appspec.yaml  view on Meta::CPAN

            schema:
              $ref: '#/definitions/search-repositories'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /search/users:
      get:
        description: Search users.
        parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc
            or desc.
          enum: &32
          - desc
          - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported user

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /user/issues:
      get:
        description: |
          List issues.
          List all issues across owned and member repositories for the authenticated
          user.
        parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum: &34
          - assigned
          - created
          - mentioned
          - subscribed
          - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum: &35
          - open
          - closed
          in: query
          name: state
          required: true
          type: string
        - description: String list of comma separated Label names. Example - bug,ui,@high.
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum: &36
          - created
          - updated
          - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum: &37
          - asc
          - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /user/repos:
      get:
        description: |
          List repositories for the authenticated user. Note that this does not include
          repositories owned by organizations which the user can access. You can lis
          user organizations and list organization repositories separately.
        parameters:
        - default: all
          enum: &38
          - all
          - public
          - private
          - forks
          - sources
          - member
          in: query
          name: type
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /user/starred:
      get:
        description: List repositories being starred by the authenticated user.
        parameters:
        - description: Ignored without 'sort' parameter.
          in: query
          name: direction
          type: string
        - default: created
          description: ''
          enum: &39
          - created
          - updated
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

              for details.
    /users/{username}/repos:
      get:
        description: List public repositories for the specified user.
        parameters:
        - description: Name of user.
          in: path
          name: username
          required: true
          type: string
        - default: all
          enum: &40
          - all
          - public
          - private
          - forks
          - sources
          - member
          in: query
          name: type
          type: string

examples/githubcl-appspec.yaml  view on Meta::CPAN

          required: 1
          summary: Name of repository.
          type: string
        - enum: *25
          name: archive_format
          required: 1
          summary: ~
          type: string
        - name: path
          required: 1
          summary: Valid Git reference, defaults to 'master'.
          type: string
        summary: Get archive link.
      /repos/:owner/:repo/assignees:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo

examples/githubcl-openapi.yaml  view on Meta::CPAN

        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /issues:
    get:
      description: |
        List issues.
        List all issues across all the authenticated user's visible repositories.
      parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query
          name: state
          required: true
          type: string
        - description: 'String list of comma separated Label names. Example - bug,ui,@high.'
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum:
            - created
            - updated
            - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum:
            - asc
            - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-openapi.yaml  view on Meta::CPAN

            for details.
  '/legacy/repos/search/{keyword}':
    get:
      description: 'Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter.'
      parameters:
        - description: The search term
          in: path
          name: keyword
          required: true
          type: string
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: Filter results by language
          in: query
          name: language

examples/githubcl-openapi.yaml  view on Meta::CPAN

            for details.
  '/legacy/user/search/{keyword}':
    get:
      description: Find users by keyword.
      parameters:
        - description: The search term
          in: path
          name: keyword
          required: true
          type: string
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: The page number to fetch
          in: query
          name: start_page

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: OK
          schema:
            $ref: '#/definitions/notifications'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    put:
      description: |
        Mark as read.
        Marking a notification as "read" removes it from the default view on GitHub.com.
      parameters:
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.
          in: header
          name: Accept
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

    get:
      description: |
        List issues.
        List all issues for a given organization for the authenticated user.
      parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query
          name: state
          required: true
          type: string
        - description: 'String list of comma separated Label names. Example - bug,ui,@high.'
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum:
            - created
            - updated
            - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum:
            - asc
            - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-openapi.yaml  view on Meta::CPAN

            for details.
  '/orgs/{org}/repos':
    get:
      description: List repositories for the specified org.
      parameters:
        - description: Name of organisation.
          in: path
          name: org
          required: true
          type: string
        - default: all
          enum:
            - all
            - public
            - private
            - forks
            - sources
            - member
          in: query
          name: type
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: newes
          enum:
            - newes
            - oldes
            - watchers
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query
          name: state
          required: true
          type: string
        - description: 'String list of comma separated Label names. Example - bug,ui,@high.'
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum:
            - created
            - updated
            - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum:
            - asc
            - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: open
          description: String to filter by state.
          enum:
            - open
            - closed
          in: query
          name: state
          type: string
        - description: Ignored without 'sort' parameter.
          in: query
          name: direction
          type: string
        - default: due_date
          description: ''
          enum:
            - due_date
            - completeness
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/notifications'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    put:
      description: |
        Mark notifications as read in a repository.
        Marking all notifications in a repository as "read" removes them from the
        default view on GitHub.com.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true
          type: string
        - default: open
          description: String to filter by state.
          enum:
            - open
            - closed
          in: query
          name: state
          type: string
        - description: |
            Filter pulls by head user and branch name in the format of 'user:ref-name'.
            Example: github:new-script-format.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/pulls'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/pulls/comments':
    get:
      description: |
        List comments in a repository.
        By default, Review Comments are ordered by ascending ID.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-openapi.yaml  view on Meta::CPAN

          name: repo
          required: true
          type: string
        - enum:
            - tarball
            - zipball
          in: path
          name: archive_format
          required: true
          type: string
        - description: 'Valid Git reference, defaults to ''master''.'
          in: path
          name: path
          required: true
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header
          name: X-GitHub-Media-Type
          type: string
        - description: Is used to set specified media type.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/repositories'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /search/code:
    get:
      description: Search code.
      parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported code
            search parameters:

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/search-code'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /search/issues:
    get:
      description: Find issues by state and keyword. (This method returns up to 100 results per page.)
      parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: 'The q search term can also contain any combination of the supported issue search qualifiers:'
          in: query
          name: q

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/search-issues'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /search/repositories:
    get:
      description: Search repositories.
      parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported repository
            search parameters:

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/search-repositories'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /search/users:
    get:
      description: Search users.
      parameters:
        - default: desc
          description: The sort field. if sort param is provided. Can be either asc or desc.
          enum:
            - desc
            - asc
          in: query
          name: order
          type: string
        - description: |
            The search terms. This can be any combination of the supported user
            search parameters:

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /user/issues:
    get:
      description: |
        List issues.
        List all issues across owned and member repositories for the authenticated
        user.
      parameters:
        - default: all
          description: |
            Issues assigned to you / created by you / mentioning you / you're
            subscribed to updates for / All issues the authenticated user can see
          enum:
            - assigned
            - created
            - mentioned
            - subscribed
            - all
          in: query
          name: filter
          required: true
          type: string
        - default: open
          enum:
            - open
            - closed
          in: query
          name: state
          required: true
          type: string
        - description: 'String list of comma separated Label names. Example - bug,ui,@high.'
          in: query
          name: labels
          required: true
          type: string
        - default: created
          enum:
            - created
            - updated
            - comments
          in: query
          name: sort
          required: true
          type: string
        - default: desc
          enum:
            - asc
            - desc
          in: query
          name: direction
          required: true
          type: string
        - description: |
            Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
            Only issues updated at or after this time are returned.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /user/repos:
    get:
      description: |
        List repositories for the authenticated user. Note that this does not include
        repositories owned by organizations which the user can access. You can lis
        user organizations and list organization repositories separately.
      parameters:
        - default: all
          enum:
            - all
            - public
            - private
            - forks
            - sources
            - member
          in: query
          name: type
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  /user/starred:
    get:
      description: List repositories being starred by the authenticated user.
      parameters:
        - description: Ignored without 'sort' parameter.
          in: query
          name: direction
          type: string
        - default: created
          description: ''
          enum:
            - created
            - updated
          in: query
          name: sort
          type: string
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

            for details.
  '/users/{username}/repos':
    get:
      description: List public repositories for the specified user.
      parameters:
        - description: Name of user.
          in: path
          name: username
          required: true
          type: string
        - default: all
          enum:
            - all
            - public
            - private
            - forks
            - sources
            - member
          in: query
          name: type
          type: string

examples/githubcl-openapi.yaml  view on Meta::CPAN

            type: string
        type: object
      ref:
        type: string
      url:
        type: string
    type: object
  headBranchBody:
    properties:
      force:
        description: 'Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work.'
        type: boolean
      sha:
        description: String of the SHA1 value to set this reference to.
        type: string
    required:
      - sha
      - force
    type: object
  heads:
    items:

examples/githubcl-openapi.yaml  view on Meta::CPAN

        type: array
    type: object
  search-repositories:
    properties:
      items:
        items:
          properties:
            created_at:
              description: 'ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ'
              type: string
            default_branch:
              type: string
            description:
              type: string
            fork:
              type: boolean
            forks:
              type: integer
            forks_count:
              type: integer
            full_name:

examples/html/githubcl.html  view on Meta::CPAN


<pre><code>    githubcl GET /repos/:owner/:repo/:archive_format/:path &lt;owner&gt; &lt;repo&gt; &lt;archive_format&gt; &lt;path&gt;</code></pre>

<p>Get archive link.</p>

<p>Parameters:</p>

<pre><code>    owner           *  Name of repository owner.                 
    repo            *  Name of repository.                       
    archive_format  *                                            
    path            *  Valid Git reference, defaults to &#39;master&#39;.</code></pre>

<h3 id="GET-repos-:owner-:repo-assignees">GET /repos/:owner/:repo/assignees</h3>

<pre><code>    githubcl GET /repos/:owner/:repo/assignees &lt;owner&gt; &lt;repo&gt;</code></pre>

<p>List assignees.</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.

examples/pod/githubcl.pod  view on Meta::CPAN


    githubcl GET /repos/:owner/:repo/:archive_format/:path <owner> <repo> <archive_format> <path>

Get archive link.

Parameters:

    owner           *  Name of repository owner.                 
    repo            *  Name of repository.                       
    archive_format  *                                            
    path            *  Valid Git reference, defaults to 'master'.

=head3 GET /repos/:owner/:repo/assignees

    githubcl GET /repos/:owner/:repo/assignees <owner> <repo>

List assignees.

Parameters:

    owner  *  Name of repository owner.

lib/API/CLI/App/Spec.pm  view on Meta::CPAN


=head1 METHODS

=over 4

=item from_openapi

    my $spec = API::CLI::App::Spec->from_openapi(
        openapi => $openapi,
        name => "myclient",
        class => "My::API::CLI", # default API::CLI
    );

Returns a L<App::Spec> object from an OpenAPI structure.

=item openapi2appspec

    my $hashref = API::CLI::App::Spec->openapi2appspec(
        openapi => $openapi,
        name => $name,
        class => $class,

lib/apicli.pod  view on Meta::CPAN


    apicli  appspec [options] <file>

Generate App::Spec file

This will generate an App::Spec file from an OpenAPI file

Options:

    --from      Currently only 'openapi' is supported
    --out       Output file (default stdout)         
    --name   *  appname                              
    --class     Class name (default API::CLI)        

Parameters:

    file  *  openapi file

=head3  help

    apicli  help <subcommands> [options]

Show command help

share/apicli-spec.yaml  view on Meta::CPAN

  apicli lets you create an appspec file from an OpenAPI file.
options:
subcommands:
    appspec:
      summary: "Generate App::Spec file"
      op: "appspec_openapi"
      description: "This will generate an App::Spec file from an OpenAPI file"
      options:
      - name: from
        summary: Currently only 'openapi' is supported
        default: 'openapi'
      - name: out
        summary: Output file (default stdout)
      - name: name
        summary: appname
        required: true
      - name: class
        summary: Class name (default API::CLI)
      parameters:
      - name: "file"
        summary: "openapi file"
        required: true
        type: file

# vim:et:sts=2:sws=2:sw=2:foldmethod=indent

share/completion/bash/apicli.bash  view on Meta::CPAN

            ;;
            esac
          ;;
        esac

        ;;
        esac
      ;;
      appspec)
        FLAGS+=()
        OPTIONS+=('--from' 'Currently only '"'"'openapi'"'"' is supported' '--out' 'Output file (default stdout)' '--name' 'appname' '--class' 'Class name (default API::CLI)')
        __apicli_handle_options_flags
          case $INDEX in
          1)
              __comp_current_options || return
          ;;
          *)
            __comp_current_options true || return # after parameters
            case ${MYWORDS[$INDEX-1]} in
              --from)
              ;;

share/completion/bash/apicli.bash  view on Meta::CPAN

      done
      __apicli_dynamic_comp 'options' "$options_spec"

      return 1
    else
      return 0
    fi
}


complete -o default -F _apicli apicli

share/completion/zsh/_apicli  view on Meta::CPAN

            ;;
            appspec)

                # ---- Command: appspec
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->file' \
                    '--help[Show command help]' \
                    '-h[Show command help]' \
                    '--from[Currently only '"'"'openapi'"'"' is supported]:from' \
                    '--out[Output file (default stdout)]:out' \
                    '--name[appname]:name' \
                    '--class[Class name (default API::CLI)]:class' \
                    && ret=0

                case $state in
                file)
_files
                ;;
                esac

            ;;
            help)



( run in 0.484 second using v1.01-cache-2.11-cpan-0a6323c29d9 )