Versions in this module Expand all Collapse all v1 v1.19.0 Nov 24, 2026 Changes in this version + const DescribeArg + const EnvAPIVersion + const EnvAccessToken + const EnvBinName + const EnvInstanceURL + const EnvName + const EnvOrgID + const EnvProtocol + const EnvUsername + const EnvVersion + const ProtocolVersion + func BinName() string + func HostProtocol() int + func Main(manifest Manifest, run func(args []string) int) + func Run(manifest Manifest, args []string, out, errOut io.Writer, ...) int + func WriteError(w io.Writer, name, message string, exitCode int, commandName string, ...) error + func WriteManifest(w io.Writer, manifest Manifest) error + func WriteResult(w io.Writer, status int, result interface{}, warnings []string) error + type Command struct + ID string + Org OrgRequirement + Summary string + func (c Command) OrgRequirement() OrgRequirement + func (c Command) Words() []string + type ErrorEnvelope struct + Actions []string + Code string + CommandName string + Context string + Data interface{} + ExitCode int + Message string + Name string + Status int + Warnings []string + type Manifest struct + Commands []Command + Name string + Protocol int + Topics []Topic + Version string + func ParseManifest(data []byte) (Manifest, error) + func (m Manifest) Validate() error + type Org struct + APIVersion string + AccessToken string + InstanceURL string + OrgID string + Username string + func OrgFromEnv() (Org, bool) + type OrgRequirement string + const OrgNone + const OrgOptional + const OrgRequired + type ResultEnvelope struct + Result interface{} + Status int + Warnings []string + type Topic struct + ID string + Summary string