Files
threshold/internal/cmd/commands/database/database.go
T
shadowdaoandClaude Sonnet 5.5 962d708fdd Rename Go module paths to repo.anhonesthost.net/CyberCoveLLC/threshold
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>
2026-10-12 10:33:41 -07:00

54 lines
1.1 KiB
Go

// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1
package database
import (
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/base"
"github.com/mitchellh/cli"
"github.com/posener/complete"
)
var (
_ cli.Command = (*Command)(nil)
_ cli.CommandAutocomplete = (*Command)(nil)
)
type Command struct {
*base.Command
}
func (c *Command) Synopsis() string {
return "Manage Threshold's database"
}
func (c *Command) Help() string {
return base.WrapForHelpText([]string{
"Usage: threshold database [sub command] [options] [args]",
"",
" This command allows operations on Threshold's database. Example:",
"",
" Initialize the database:",
"",
` $ threshold database init`,
"",
" Please see the database subcommand help for detailed usage information.",
})
}
func (c *Command) Flags() *base.FlagSets {
return nil
}
func (c *Command) AutocompleteArgs() complete.Predictor {
return complete.PredictAnything
}
func (c *Command) AutocompleteFlags() complete.Flags {
return c.Flags().Completions()
}
func (c *Command) Run(args []string) int {
return cli.RunResultHelp
}