Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
22c20e4e
Commit
22c20e4e
authored
Dec 28, 2015
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: add version subcommand to dexctl
closes #220
parent
8e5115ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
build
build
+1
-1
command_version.go
cmd/dexctl/command_version.go
+21
-0
No files found.
build
View file @
22c20e4e
...
...
@@ -11,7 +11,7 @@ mkdir -p $GOPATH/src/github.com/coreos/
LD_FLAGS
=
"-X main.version=
$(
./git-version
)
"
go build
-o
bin/dex-worker
-ldflags
=
"
$LD_FLAGS
"
github.com/coreos/dex/cmd/dex-worker
go build
-o
bin/dexctl github.com/coreos/dex/cmd/dexctl
go build
-o
bin/dexctl
-ldflags
=
"
$LD_FLAGS
"
github.com/coreos/dex/cmd/dexctl
go build
-o
bin/dex-overlord
-ldflags
=
"
$LD_FLAGS
"
github.com/coreos/dex/cmd/dex-overlord
go build
-o
bin/example-app github.com/coreos/dex/examples/app
go build
-o
bin/example-cli github.com/coreos/dex/examples/cli
cmd/dexctl/command_version.go
0 → 100644
View file @
22c20e4e
package
main
import
"github.com/spf13/cobra"
var
(
// set by the top level build script
version
=
""
cmdVersion
=
&
cobra
.
Command
{
Use
:
"version"
,
Short
:
"Print the dexctl version."
,
Long
:
"Print the dexctl version."
,
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
stdout
(
version
)
},
}
)
func
init
()
{
rootCmd
.
AddCommand
(
cmdVersion
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment