Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Add version flag to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
deslaughter committed Dec 29, 2023
1 parent 2fdb5f6 commit 0ed28f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package main

import (
"embed"
"flag"
"fmt"

"github.com/labstack/gommon/log"
"github.com/wailsapp/wails/v2"
Expand All @@ -15,6 +17,13 @@ var assets embed.FS

func main() {

showVersion := flag.Bool("version", false, "display version information")
flag.Parse()
if *showVersion {
fmt.Println("v0.1.0-alpha")
return
}

// Create an instance of the app structure
app := NewApp()

Expand Down

0 comments on commit 0ed28f0

Please sign in to comment.