docker-selector

command module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 8 Imported by: 0

README

docker-selector Build Status

Docker container selector using peco.

demo

Requirements

  • docker
  • peco

Installation

You can get binary from github release page.

-> Release Page

or, use go get:

$ go get -u github.com/ujiro99/docker-selector

Usage

Use this with key bindings.
An example of calling with Ctrl + d.

  • bash
# add this .bashrc
peco-docker-selector() {
    local l=$(\docker-selector -a)
    READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT}${l}${READLINE_LINE:$READLINE_POINT}"
    READLINE_POINT=$(($READLINE_POINT + ${#l}))
}
bind -x '"\C-d": peco-docker-selector'
  • nyagos
-- add this .nyagos
nyagos.bindkey("C_D", function(this)
    local result = nyagos.eval('docker-selector.exe -a')
    this:call("CLEAR_SCREEN")
    return result
end)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL