Skip to content

Commit 9a83c40

Browse files
authored
Merge pull request #4 from stepbeta/feat/add-cilium-hubble
feat: add cilium-cli and hubble tools plus support for zipped github releases
2 parents c5220cc + fd1c83c commit 9a83c40

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+448
-39
lines changed

.vscode/launch.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111
"mode": "debug",
1212
"program": "${workspaceFolder}/main.go",
1313
"args": [
14-
"talosctl",
15-
"use",
16-
"v1.11.4",
17-
"-i"
14+
"cilium",
15+
"install",
16+
"v0.19.0",
17+
"-u"
1818
],
1919
"env": {
2020
"GITHUB_TOKEN": "<my-token>"
21-
// "VRSR_BIN_PATH": "/opt/vrsr"
2221
}
2322
},
2423
]

cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ func init() {
6262
rootCmd.AddCommand(tools.NewTalosctlCommand())
6363
rootCmd.AddCommand(tools.NewKubectlCommand())
6464
rootCmd.AddCommand(tools.NewHelmCommand())
65+
rootCmd.AddCommand(tools.NewCiliumCommand())
66+
rootCmd.AddCommand(tools.NewHubbleCommand())
6567
}
6668

6769
// initializeConfig sets up Viper to read in config files and environment variables

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var versionCmd = &cobra.Command{
1010
Short: "vrsr tool version",
1111
Long: `Shows the current version of the vrsr tool.`,
1212
Run: func(cmd *cobra.Command, args []string) {
13-
cmd.Printf("vrsr version v%s\n", Version)
13+
cmd.Printf("vrsr version %s\n", Version)
1414
},
1515
}
1616

docs/vrsr.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ A tool to easily install and use multiple versions of several tools.
1717

1818
### SEE ALSO
1919

20+
* [vrsr cilium](vrsr_cilium.md) - Manage Cilium CLI versions
2021
* [vrsr completion](vrsr_completion.md) - Generate the autocompletion script for the specified shell
2122
* [vrsr docs](vrsr_docs.md) - generate vrsr documentation
2223
* [vrsr helm](vrsr_helm.md) - Manage helm versions
24+
* [vrsr hubble](vrsr_hubble.md) - Manage hubble versions
2325
* [vrsr kind](vrsr_kind.md) - Manage kind versions
2426
* [vrsr kubectl](vrsr_kubectl.md) - Manage kubectl versions
2527
* [vrsr talosctl](vrsr_talosctl.md) - Manage talosctl versions
2628
* [vrsr version](vrsr_version.md) - vrsr tool version
2729

28-
###### Auto generated by spf13/cobra on 19-Jan-2026
30+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_cilium.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## vrsr cilium
2+
3+
Manage Cilium CLI versions
4+
5+
### Synopsis
6+
7+
A tool to easily install and use multiple versions of Cilium CLI.
8+
9+
### Options
10+
11+
```
12+
-h, --help help for cilium
13+
```
14+
15+
### Options inherited from parent commands
16+
17+
```
18+
-b, --bin-path string Absolute path to folder storing in-use tools binaries (default "/home/stefano/.vrsr/bin")
19+
--config string config file (default is $HOME/.vrsr/config.yaml)
20+
-d, --vrs-path string Absolute path to folder storing downloaded tools binary versions (default "/home/stefano/.vrsr/versions")
21+
```
22+
23+
### SEE ALSO
24+
25+
* [vrsr](vrsr.md) - (Almost) Universal tools versions manager
26+
* [vrsr cilium install](vrsr_cilium_install.md) - Download and install cilium for the current OS/ARCH
27+
* [vrsr cilium list](vrsr_cilium_list.md) - List all installed cilium versions
28+
* [vrsr cilium list-remote](vrsr_cilium_list-remote.md) - List all remote cilium versions from GitHub (sorted by semver)
29+
* [vrsr cilium use](vrsr_cilium_use.md) - Set the specified cilium version as the active one
30+
31+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_cilium_install.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## vrsr cilium install
2+
3+
Download and install cilium for the current OS/ARCH
4+
5+
### Synopsis
6+
7+
Download the cilium binary for the current OS/ARCH at the specified version.
8+
9+
This binary will be saved into the path specified by the "bin-path" flag. It will be named "cilium-$version".
10+
11+
Make sure to check the "use <version>" command after installing a new version
12+
13+
```
14+
vrsr cilium install <version> [flags]
15+
```
16+
17+
### Options
18+
19+
```
20+
-h, --help help for install
21+
-u, --use Immediately use the version once installed (best effort)
22+
```
23+
24+
### Options inherited from parent commands
25+
26+
```
27+
-b, --bin-path string Absolute path to folder storing in-use tools binaries (default "/home/stefano/.vrsr/bin")
28+
--config string config file (default is $HOME/.vrsr/config.yaml)
29+
-d, --vrs-path string Absolute path to folder storing downloaded tools binary versions (default "/home/stefano/.vrsr/versions")
30+
```
31+
32+
### SEE ALSO
33+
34+
* [vrsr cilium](vrsr_cilium.md) - Manage Cilium CLI versions
35+
36+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_cilium_list-remote.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## vrsr cilium list-remote
2+
3+
List all remote cilium versions from GitHub (sorted by semver)
4+
5+
### Synopsis
6+
7+
Lists all the remote cilium versions available as GitHub releases (sorted by semver).
8+
9+
In the list the versions currently installed are marked with a '+' symbol, while the version currently in use is marked with a '*' symbol.
10+
11+
Note: By default pre-release versions (alpha, beta, rc) are hidden. Use '--devel' to include them
12+
13+
```
14+
vrsr cilium list-remote [flags]
15+
```
16+
17+
### Options
18+
19+
```
20+
--devel Include pre-release versions (alpha, beta, rc)
21+
-f, --force Force refresh of remote versions cache
22+
-h, --help help for list-remote
23+
-l, --limit int Limit number of versions displayed
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
-b, --bin-path string Absolute path to folder storing in-use tools binaries (default "/home/stefano/.vrsr/bin")
30+
--config string config file (default is $HOME/.vrsr/config.yaml)
31+
-d, --vrs-path string Absolute path to folder storing downloaded tools binary versions (default "/home/stefano/.vrsr/versions")
32+
```
33+
34+
### SEE ALSO
35+
36+
* [vrsr cilium](vrsr_cilium.md) - Manage Cilium CLI versions
37+
38+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_cilium_list.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## vrsr cilium list
2+
3+
List all installed cilium versions
4+
5+
### Synopsis
6+
7+
Lists all the cilium versions that are currently installed on the system.
8+
9+
```
10+
vrsr cilium list [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help help for list
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-b, --bin-path string Absolute path to folder storing in-use tools binaries (default "/home/stefano/.vrsr/bin")
23+
--config string config file (default is $HOME/.vrsr/config.yaml)
24+
-d, --vrs-path string Absolute path to folder storing downloaded tools binary versions (default "/home/stefano/.vrsr/versions")
25+
```
26+
27+
### SEE ALSO
28+
29+
* [vrsr cilium](vrsr_cilium.md) - Manage Cilium CLI versions
30+
31+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_cilium_use.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## vrsr cilium use
2+
3+
Set the specified cilium version as the active one
4+
5+
### Synopsis
6+
7+
Create a symlink to the specified version with the name "cilium".\n\nMake sure the "bin-path" is included in the $PATH variable.
8+
9+
```
10+
vrsr cilium use <version> [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help help for use
17+
-i, --install Install the version if not yet present (best effort)
18+
```
19+
20+
### Options inherited from parent commands
21+
22+
```
23+
-b, --bin-path string Absolute path to folder storing in-use tools binaries (default "/home/stefano/.vrsr/bin")
24+
--config string config file (default is $HOME/.vrsr/config.yaml)
25+
-d, --vrs-path string Absolute path to folder storing downloaded tools binary versions (default "/home/stefano/.vrsr/versions")
26+
```
27+
28+
### SEE ALSO
29+
30+
* [vrsr cilium](vrsr_cilium.md) - Manage Cilium CLI versions
31+
32+
###### Auto generated by spf13/cobra on 4-Feb-2026

docs/vrsr_completion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ See each sub-command's help for details on how to use the generated script.
3030
* [vrsr completion powershell](vrsr_completion_powershell.md) - Generate the autocompletion script for powershell
3131
* [vrsr completion zsh](vrsr_completion_zsh.md) - Generate the autocompletion script for zsh
3232

33-
###### Auto generated by spf13/cobra on 19-Jan-2026
33+
###### Auto generated by spf13/cobra on 4-Feb-2026

0 commit comments

Comments
 (0)