dcp

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 4 Imported by: 0

README

dcp

Build Status GitHub version

An alias of docker container cp and useful completions.

$ dcp <TAB><TAB>
-            .gitignore   README.md    completion/  debug/       fuga:        go.sum       internal/
.git/        Makefile     bar:         dcp          foo:         go.mod       hoge:        main.go
$ dcp bar:<TAB><TAB>
bin/    dev/    etc/    home/   lib/    media/  mnt/    opt/    proc/   root/   run/    sbin/   srv/    sys/    tmp/    usr/    var/
$ dcp bar:etc/<TAB><TAB>
etc/alpine-release   etc/group            etc/issue            etc/motd             etc/passwd           etc/resolv.conf      etc/ssl/
etc/apk/             etc/hostname         etc/logrotate.d/     etc/mtab             etc/periodic/        etc/securetty        etc/sysctl.conf
etc/conf.d/          etc/hosts            etc/modprobe.d/      etc/network/         etc/profile          etc/services         etc/sysctl.d/
etc/crontabs/        etc/init.d/          etc/modules          etc/opt/             etc/profile.d/       etc/shadow           etc/udhcpd.conf
etc/fstab            etc/inittab          etc/modules-load.d/  etc/os-release       etc/protocols        etc/shells
$ dcp bar:etc/alpine-release .
$ cat alpine-release
3.10.2

Prerequisites

  • Docker commands are executable without sudo.
  • Bash completion is installed.

Installation

Binary
$ go get -u github.com/arkark/dcp
Completion
Linux
$ sudo curl -L https://raw.githubusercontent.com/arkark/dcp/go1/completion/dcp -o /etc/bash_completion.d/dcp
Mac
$ sudo curl -L https://raw.githubusercontent.com/arkark/dcp/go1/completion/dcp -o /usr/local/etc/bash_completion.d/dcp

Supported shells

  • bash
  • zsh
  • fish

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

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