package cmd

import "github.com/go-arrower/arrower/cmd"

Index

Functions

func TestExecute

func TestExecute(t *testing.T, command *cobra.Command, args ...string) (string, error)

TestExecute is a helper that executes a cobra command and returns its output and error.

func Version

func Version(name string) *cobra.Command

Version returns a `version` command to be added to any cobra (root) command.

Source Files

testing.go version.go

Version
v0.0.0-20250610204408-e8a0d9b3f45b (latest)
Published
Jun 10, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
2 weeks ago

Tools for package owners.