Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Secure solution for nexus infrastructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
TM
Secure solution for nexus infrastructure
Commits
36f6f31b
Commit
36f6f31b
authored
8 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
minor change to templateList.go
parent
f3eea7ed
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/client/cmdTemplate/helper.go
+0
-15
0 additions, 15 deletions
src/client/cmdTemplate/helper.go
src/client/cmdTemplate/templateList.go
+7
-1
7 additions, 1 deletion
src/client/cmdTemplate/templateList.go
with
7 additions
and
16 deletions
src/client/cmdTemplate/helper.go
deleted
100644 → 0
+
0
−
15
View file @
f3eea7ed
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
)
}
This diff is collapsed.
Click to expand it.
src/client/cmdTemplate/templateList.go
+
7
−
1
View file @
36f6f31b
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment