goinit

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

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 3 Imported by: 0

README

goinit

Go Reference Go Report Card Test Coverage Status

Go project init tool

Install

$ go get github.com/msmsny/goinit

Usage

$ goinit -help
Usage of /path/to/bin/goinit:
  -cmd-dir string
    	cobra command code directory (default "pkg/cmd")
  -name string
    	main command name(required)
  -repo string
    	path to repo, e.g.: github.com/msmsny/goinit (default "github.com/msmsny/goinit")
  -sub string
    	sub command name
$ goinit -name foo
$ tree
.
├── cmd
│   └── foo
│       └── foo.go
└── pkg
    └── cmd
        ├── foo
        │   └── foo.go
        └── options
            └── options.go
$ goinit -name foo -sub bar
$ tree
.
├── cmd
│   └── foo
│       └── foo.go
└── pkg
    └── cmd
        ├── bar
        │   └── bar.go
        ├── foo
        │   └── foo.go
        └── options
            └── options.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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