This repository was archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Added version flag #169
Merged
Merged
Added version flag #169
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
39424d5
Added nodejs and npm for chrome extension
teddy-codes 1878641
added update
teddy-codes 2504baa
Changed name of package
teddy-codes 0b41a26
added yes
teddy-codes 9a41bd4
added yes to nodejs installation
teddy-codes 190a114
changed to have only one RUN command for install
teddy-codes 74bb00f
updated to use nvm for node install
teddy-codes 5d63a9b
Changed to using newest nvm version
teddy-codes eda91b2
Changed shell to bash
teddy-codes 5004abf
Removed trailing `&& \`
teddy-codes 199074d
Merge remote-tracking branch 'upstream/master'
teddy-codes 1846600
Added version command
teddy-codes 08a4268
added docs
teddy-codes 75b6ed1
removed docs
teddy-codes 71a299c
Changes based on PR
teddy-codes da9ca80
Changed to println
teddy-codes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package main | ||
|
|
||
| import ( | ||
| "flag" | ||
| "fmt" | ||
|
|
||
| "go.coder.com/cli" | ||
| ) | ||
|
|
||
| var version string | ||
|
|
||
| type versioncmd struct {} | ||
|
|
||
| func (v *versioncmd) Spec() cli.CommandSpec { | ||
| return cli.CommandSpec{ | ||
| Name: "version", | ||
| Desc: fmt.Sprintf("Retrieve the current version."), | ||
| } | ||
| } | ||
|
|
||
| func (v *versioncmd) Run(fl *flag.FlagSet) { | ||
| fmt.Println(version) | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this populated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci/build.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh, duh