GithubHelp home page GithubHelp logo

halostatue / fish-docker Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 2.0 125 KB

Docker and Docker Compose completions for the Fish Shell

License: MIT License

Shell 84.81% Ruby 14.85% Makefile 0.34%
fish fisher fish-shell docker docker-compose fish-plugin

fish-docker's Introduction

halostatue/fish-docker

Version

Completions for Docker in the fish shell, based on docker-fish-completion.

Comparisons with Other Docker Completions

  • Docker contrib completions (docker and docker-compose): These are generated by docker-fish-completion, and the Ruby script is substantially more accurate. Also, the docker-compose completions are a fraction of what can be discovered.

  • lewisacidic/fish-docker: In addition to using the Docker contrib completions, but also adds a number of additional helper functions that aren't wanted by this author.

    If these functions are desired, but more accurate completions are required, ensure that halostatue/fish-docker is added by Fisher after lewisacidic/fish-docker (it should be later in your fish_plugins file).

Installation

Install with Fisher (recommended):

fisher install halostatue/[email protected]
Not using a package manager?

Copy completions/*.fish and conf.d/*.fish to your fish configuration directory preserving the directory structure.

System Requirements

  • fish 3.0+
  • Docker
  • Ruby 2.6 or later (to generate completions).

gen_completions.rb

Ported from the Python script in docker-fish-completion to Ruby, fixing some bugs along the way. This should be considered the initial version of the script, as it does what the Python version did and no more. The plans are to simplify the generation process further so that the completions are more readily updated in place, and that commands that themselves have subcommands can be handled.

It has been tested with Ruby 2.7.

Usage / Updating

A Makefile has been added to make building this easier.

make
# OR

make docker
make docker-compose

# OR
./gen_completions.rb docker > completions/docker.fish
./gen_completions.rb docker-compose > completions/docker-compose.fish

Licence

MIT

Change Log

CHANGELOG

Contributing

fish-docker's People

Contributors

halostatue avatar jmaroeder avatar nakamorichi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fish-docker's Issues

Don't show files on completion?

Great plugin! However, when I do docker <tab> or docker-compose <tab>, the completions list sub-commands and files in the current directory. Would it be possible to omit the files from completion except where appropriate (docker build)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.