File: cobra-init.1

package info (click to toggle)
golang-github-spf13-cobra 0.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 616 kB
  • sloc: makefile: 12
file content (58 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.TH "COBRA\-INIT" "1" "Dec 2015" "github.com/spf13/cobra" "Cobra Manual"  ""
.nh
.ad l

.SH NAME
.PP
cobra\-init \- Initialize a Cobra Application


.SH SYNOPSIS
.PP
\fBcobra init\fP [OPTIONS]


.SH DESCRIPTION
.PP
Initialize (cobra init) will create a new application, with a license
and the appropriate structure for a Cobra\-based CLI application.
.IP \(bu 2
If a name is provided, it will be created in the current directory;
.IP \(bu 2
If no name is provided, the current directory will be assumed;
.IP \(bu 2
If a relative path is provided, it will be created inside $GOPATH
(e.g. github.com/spf13/hugo);
.IP \(bu 2
If an absolute path is provided, it will be created;
.IP \(bu 2
If the directory already exists but is empty, it will be used.
.PP
Init will not use an existing directory with contents.


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-a\fP, \fB\-\-author\fP="YOUR NAME"
    Author name for copyright attribution

.PP
\fB\-\-config\fP=""
    config file (default is $HOME/.cobra.yaml)

.PP
\fB\-l\fP, \fB\-\-license\fP=""
    Name of license for the project (can provide \fB\fClicensetext\fR in config)

.PP
\fB\-b\fP, \fB\-\-projectbase\fP=""
    base project directory, e.g. github.com/spf13/

.PP
\fB\-\-viper\fP[=true]
    Use Viper for configuration


.SH SEE ALSO
.PP
\fBcobra(1)\fP