Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
anonymous-chat
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
archives
Shielded Help Demo
anonymous-chat
Commits
d5e85769
Commit
d5e85769
authored
Jul 27, 2022
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Allow exe to be launched directly from explorer on windows
parent
01671f4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/root.go
+4
-0
4 additions, 0 deletions
cmd/root.go
with
4 additions
and
0 deletions
cmd/root.go
+
4
−
0
View file @
d5e85769
...
@@ -194,6 +194,10 @@ func init() {
...
@@ -194,6 +194,10 @@ func init() {
"Starts the UI with a mock cMix client for testing purposes."
)
"Starts the UI with a mock cMix client for testing purposes."
)
bindPFlag
(
rootCmd
.
Flags
(),
"testUI"
,
rootCmd
.
Use
)
bindPFlag
(
rootCmd
.
Flags
(),
"testUI"
,
rootCmd
.
Use
)
hidePFlag
(
rootCmd
.
Flags
(),
"testUI"
,
rootCmd
.
Use
)
hidePFlag
(
rootCmd
.
Flags
(),
"testUI"
,
rootCmd
.
Use
)
// Disabling MousetrapHelpText allows the exe to be executed directly from
// explorer by clicking on it instead of needing to launch it from cmd
cobra
.
MousetrapHelpText
=
""
}
}
// bindPFlag binds the key to a pflag.Flag. Panics on error.
// bindPFlag binds the key to a pflag.Flag. Panics on error.
...
...
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