Skip to content

bash completion for commands and arguments #4

Closed

Description

@muffinmad
No description provided.

Activity

  1. assigned and unassigned on Feb 25, 2016
  2. radomirbosak commented on Jun 2, 2017

    @radomirbosak
    Contributor

    Is there something else to this issue that can be done? The only missing pieces that come to my mind is autocompletion of branch names for jenkins setbranch and autocompletion of job names for ... almost all subcommands.

    I mean.. autocompletion of job names would be awesome :D . Although I don't know if the bash automcomplete script should poll jenkins every time for the list of jobs.

    Maybe every jenkins jobs call could store the list of jobs to some kind of cache file, which could be used by the bash completion script, if it would exist. (package managers (e.g. dnf) do it like this)

    What do you think? Is this worth doing? Can we do it some other way? I'm open to suggestions.

  3. LD250 commented on Jun 3, 2017

    @LD250
    Owner

    I mean.. autocompletion of job names would be awesome :D

    Yeah, that was the primary idea.

    I think it worth doing for all sub commands which requires job_name for execution.
    But branch names do not come from Jenkins itself, rather from external source (git or mercurial). Should we decide to autocomplete branch names we would need to pull them from respective VCS.

    So I think we only need auto completion of job_names.

    Maybe every jenkins jobs call could store the list of jobs to some kind of cache file, which could be used by the bash completion script

    I think it is the best way to do this. Pull autocompletion from cache and re-validate cache on every jenkins jobs

  4. added a commit that references this issue on Jun 4, 2017
    12e6838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions