summaryrefslogtreecommitdiff
path: root/internal/flags/version.go
blob: a14e4ae22541b3c63ef76d8f40309a9a83edffe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package flags

import "fmt"

// Version is the current application version.
const Version = "v1.1.0"

const asciiBannerTemplate = ` ██╗    ██╗  ██████╗     ██████╗  ██╗  ██████╗  ████████╗
 ██║   ██╔╝ ██╔═══██╗    ██╔══██╗ ██║ ██╔═══██╗ ╚══██╔══╝
 ██║  ██╔╝  ██║   ██║    ██████╔╝ ██║ ██║   ██║    ██║   
 ██║ ██╔╝   ██║   ██║    ██╔══██╗ ██║ ██║   ██║    ██║   
 ██║██╔╝    ╚██████╔╝    ██║  ██║ ██║ ╚██████╔╝    ██║   
 ╚═╝╚═╝      ╚═════╝     ╚═╝  ╚═╝ ╚═╝  ╚═════╝     ╚═╝   
       ⚡ Next-Generation BPF I/O Syscall Tracer ⚡
                          %s`

// PrintVersion prints the banner with the current version.
func PrintVersion() {
	fmt.Printf(asciiBannerTemplate+"\n", Version)
}