Documentation
¶
Index ¶
Constants ¶
View Source
const AppName string = "gwsm"
AppName defined the application name
View Source
const AppRepoOwner string = "Goodway Group Tech"
AppRepoOwner defined the owner of the repo on GitHub
Variables ¶
View Source
var MarkdownDocTemplate = `% {{ .App.Name }} 8
# NAME
{{ .App.Name }}{{ if .App.Usage }} - {{ .App.Usage }}{{ end }}
# SYNOPSIS
{{ .App.Name }}
{{ if .SynopsisArgs }}
` + "```" + `
{{ range $v := .SynopsisArgs }}{{ $v }}{{ end }}` + "```" + `
{{ end }}{{ if .App.UsageText }}
# DESCRIPTION
{{ .App.UsageText }}
{{ end }}
**Usage**:
` + "```" + `
{{ .App.Name }} [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
` + "```" + `
{{ if .GlobalArgs }}
# GLOBAL OPTIONS
{{ range $v := .GlobalArgs }}
{{ $v }}{{ end }}
{{ end }}{{ if .Commands }}
# COMMANDS
{{ range $v := .Commands }}
{{ $v }}{{ end }}{{ end }}`
View Source
var S3GetCommandHelp = `` /* 219-byte string literal not displayed */
View Source
var SecretBinaryHelp = "" /* 126-byte string literal not displayed */
View Source
var ViewAnsibleEncryptedEnvCommandHelpText = `` /* 358-byte string literal not displayed */
View Source
var ViewAnsibleEnvDiffCommandHelpText = `` /* 668-byte string literal not displayed */
View Source
var ViewDiffCommandHelpText = `` /* 1196-byte string literal not displayed */
View Source
var ViewLocalCommandHelpText = `` /* 902-byte string literal not displayed */
View Source
var ViewNamespaceCommandHelpText = `` /* 461-byte string literal not displayed */
Functions ¶
func ToMan ¶ added in v0.9.2
ToMan creates a man page string for the `*App` The function errors if either parsing or writing of the string fails.
func ToMarkdown ¶ added in v0.9.2
ToMarkdown creates a markdown string for the `*App` The function errors if either parsing or writing of the string fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.