Skip to content
Snippets Groups Projects
Commit 36f6f31b authored by Florent Gluck's avatar Florent Gluck
Browse files

minor change to templateList.go

parent f3eea7ed
No related branches found
No related tags found
No related merge requests found
package cmdTemplate
import (
u "nexus-client/utils"
)
func printRegexUsageDetails() {
u.PrintlnErr("The action only applies to templates matching the specified IDs or regexes.")
const usage string = `Any number of IDs or regexes can be specified.
The regex only matches the template's name and is case-insensitive.
Regex examples:
"." -> matches any templates
"bla" -> matches any templates containing "bla" in their name`
u.PrintlnErr(usage)
}
......@@ -34,7 +34,13 @@ func (cmd *List) PrintUsage() {
u.PrintlnErr("USAGE: ", cmd.GetName(), " [-l] [ID ...] [regex ...]")
u.PrintlnErr("―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――")
u.PrintlnErr("Use \"-l\" to specify detailed templates output.")
printRegexUsageDetails()
u.PrintlnErr("The action only applies to templates matching the specified IDs or regexes.")
const usage string = `Any number of IDs or regexes can be specified.
The regex only matches the template's name and is case-insensitive.
Regex examples:
"." -> matches any templates
"bla" -> matches any templates containing "bla" in their name`
u.PrintlnErr(usage)
}
func (cmd *List) Run(args []string) int {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment