FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
updatecli/cmd/man.go at main · updatecli/updatecli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
updatecli
/
updatecli
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
148
Star
968
Code
Issues
105
Pull requests
16
Discussions
Actions
Projects
Security and quality
3
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
updatecli
/
cmd
/
man.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (26 loc) · 637 Bytes
Breadcrumbs
updatecli
/
cmd
/
man.go
Copy path
File metadata and controls
30 lines (26 loc) · 637 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
cmd
import
(
"fmt"
"os"
mcoral
"github.com/muesli/mango-cobra"
"github.com/muesli/roff"
"github.com/spf13/cobra"
)
var
(
manCmd
=
&
cobra.
Command
{
Use
:
"man"
,
Short
:
"Generates Updatecli's command line manpages"
,
SilenceUsage
:
true
,
DisableFlagsInUseLine
:
true
,
Hidden
:
true
,
Args
:
cobra
.
NoArgs
,
RunE
:
func
(
cmd
*
cobra.
Command
,
args
[]
string
)
error
{
manPage
,
err
:=
mcoral
.
NewManPage
(
1
,
rootCmd
)
if
err
!=
nil
{
return
err
}
_
,
err
=
fmt
.
Fprint
(
os
.
Stdout
,
manPage
.
Build
(
roff
.
NewDocument
()))
return
err
},
}
)
Back
|
FazBrowse Home
|
New Git URL