File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ import (
25
25
"github.com/spf13/pflag"
26
26
)
27
27
28
- const MAN_DIR = "../../docs/man"
29
- const MAN_INSTALL_DIR = "/usr/local/share/man/man1"
28
+ const (
29
+ MAN_DIR = "../../docs/man"
30
+ MAN_INSTALL_DIR = "/usr/local/share/man/man1"
31
+ )
30
32
31
33
func main () {
32
34
if len (os .Args [1 :]) == 0 {
@@ -57,7 +59,7 @@ func main() {
57
59
}
58
60
59
61
fmt .Println ("Man pages generated successfully in kraftkit/docs/man" )
60
-
62
+
61
63
case "--install" , "-i" :
62
64
srcDir := MAN_DIR
63
65
destDir := MAN_INSTALL_DIR
@@ -66,7 +68,7 @@ func main() {
66
68
os .Exit (1 )
67
69
}
68
70
fmt .Println ("Man pages installed successfully!" )
69
-
71
+
70
72
default :
71
73
outdir := arg
72
74
if err := os .MkdirAll (outdir , 0o775 ); err != nil {
@@ -455,4 +457,4 @@ type byName []*cobra.Command
455
457
456
458
func (s byName ) Len () int { return len (s ) }
457
459
func (s byName ) Swap (i , j int ) { s [i ], s [j ] = s [j ], s [i ] }
458
- func (s byName ) Less (i , j int ) bool { return s [i ].Name () < s [j ].Name () }
460
+ func (s byName ) Less (i , j int ) bool { return s [i ].Name () < s [j ].Name () }
You can’t perform that action at this time.
0 commit comments