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-20250311203644-ab26c1152cb4 (latest)
Published
Mar 11, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
1 week ago

Tools for package owners.