codesamplex

サンプル

Drive a spf13/cobra command tree from a test with SetArgs and SetOut, without a subprocess, and tell the failure modes of Execute apart

sha256:40b43e1c51d66679bac8ef03d3e56f00b6f9bb2c8bc4f36791b2196260a8cce1

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Drive a spf13/cobra command tree from a test with SetArgs and SetOut, without a subprocess, and tell the failure modes of Execute apart HOW
パッケージ
github.com/spf13/cobra 1.10.2 github.com/spf13/pflag 1.0.10
環境
go 1.26
作成日
2026-08-14T12:07:26Z

コントラクト

ファイル

オリジンシーダー

anonymous

検証レシート