dogo

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

dogo logo Go Reference Go Report Card

docker (compose) command line helper with autocomplete written in go and cobra

Install

go install github.com/XotoX1337/dogo@latest

Alternativley you can download the binary of the latest release

Usage

Usage:
  dogo [command]

Available Commands:
  completion  Generate completion script
  create      Create all or a specific service from a docker-compose.yml file
  exec        Execute a command in a running container
  help        Help about any command
  list        List all containers & services
  rebuild     Rebuild one or many services
  remove      Remove one or many containers
  restart     Restart one or many containers
  shell       Use shell of a running container
  start       Start one or many containers
  stop        Stop one or many containers
  version     Show the dogo version information

Flags:
  -h, --help     help for dogo
  -t, --toggle   Help message for toggle

Examples

dogo shell yourContainer
dogo start firstContainer secondContainer ...

Completion

To generate a completion script run

dogo completion [bash|zsh|fish|powershell]

This generates a completion script and prints it to stdout. After that, the script must be saved and loaded according to the environment (Windows, Linux).

Alternativley you can let dogo do all that for you. At the moment the following terminals are supported:

Bash

dogo completion bash -f

this will generate the completion script and place it by default under

$HOME/.bash_completion.d/dogo-completion.sh

and also add a line to source the file for your profile.

You can change the default path for the completion script with

dogo completion bash -f -d <path>

Powershell

dogo completion bash -f

this will generate the completion script and place it by default under

$HOME\Documents\WindowsPowerShell\dogo-completion.ps1

and also add a line to source the file for your profile.

You can change the default path for the completion script with

dogo completion bash -f -d <path>

Credits

dogo mascot created by @typomedia

Documentation

Overview

Copyright © 2022 Frederic Leist <[email protected]>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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