Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
/ dcp Public archive

An alias of `docker container cp` and useful completions

License

Notifications You must be signed in to change notification settings

arkark/dcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcp

Build Status license: MIT 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

About

An alias of `docker container cp` and useful completions

Resources

License

Stars

Watchers

Forks

Packages

No packages published