Rename root, api and sdk module paths (imports, go.mod, go_package, ldflags, build scripts, buf configs) and regenerate protobuf/gateway code with the project's pinned toolchain. Wire identifiers unchanged. api gets a local replace for sdk; root/api/sdk require v0.1.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
39 lines
886 B
Go
39 lines
886 B
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package unsupported
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
|
|
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/base"
|
|
"github.com/mitchellh/cli"
|
|
)
|
|
|
|
var _ cli.Command = (*UnsupportedCommand)(nil)
|
|
|
|
// UnsupportedCommand is a command that simply prints out a message indicating
|
|
// the requested command is not supported on this platform.
|
|
type UnsupportedCommand struct {
|
|
*base.Command
|
|
CommandName string
|
|
}
|
|
|
|
func (c *UnsupportedCommand) notice() string {
|
|
return fmt.Sprintf("'threshold %s' is not supported on this platform.", c.CommandName)
|
|
}
|
|
|
|
func (c *UnsupportedCommand) Synopsis() string {
|
|
return c.notice()
|
|
}
|
|
|
|
func (c *UnsupportedCommand) Help() string {
|
|
return c.notice()
|
|
}
|
|
|
|
func (c *UnsupportedCommand) Run(args []string) int {
|
|
c.Command.PrintCliError(errors.New(c.notice()))
|
|
return base.CommandUserError
|
|
}
|