tutorial-go-cli

command module
v0.0.0-...-b3d85f0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 1 Imported by: 0

README

Tutorial: Go CLI

An example project of CLI utility written in Golang.

This example:

  • defines project structure,
  • is using Cobra CLI library and
  • implements a few sample cli commands

This project exposes CLI tool with root command tutorgo.

Resources

Cobra

Cobra CLI library is used by many CLI tools (for example kubectl).
Out of the box provides autocomplete generation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
test

Jump to

Keyboard shortcuts

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