Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Verosint CLI
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Verosint
public
Verosint CLI
Commits
0d786840
Commit
0d786840
authored
2 years ago
by
Bo Li
Browse files
Options
Downloads
Patches
Plain Diff
use module version
parent
4c691e89
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/build.go
+10
-1
10 additions, 1 deletion
build/build.go
main.go
+5
-1
5 additions, 1 deletion
main.go
with
15 additions
and
2 deletions
build/build.go
+
10
−
1
View file @
0d786840
package
build
var
Version
=
"dev"
\ No newline at end of file
import
"runtime/debug"
var
Version
=
"dev"
func
Init
()
{
info
,
ok
:=
debug
.
ReadBuildInfo
()
if
ok
&&
info
.
Main
.
Version
!=
""
{
Version
=
info
.
Main
.
Version
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.go
+
5
−
1
View file @
0d786840
...
...
@@ -4,8 +4,12 @@ Copyright © 2022 443ID
*/
package
main
import
"gitlab.com/443id/public/443id-cli/cmd"
import
(
"gitlab.com/443id/public/443id-cli/build"
"gitlab.com/443id/public/443id-cli/cmd"
)
func
main
()
{
build
.
Init
()
cmd
.
Execute
()
}
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