cmd

package
v0.0.0-...-0ee61ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NetworkFlag is the name of the flag used to specify the network.
	NetworkFlag = "network"
)

Variables

View Source
var (
	// RootCmd is the root command for the SovereignAISearchStorage application.
	RootCmd = &cobra.Command{
		Use:   "SovereignAISearchStorage",
		Short: "SovereignAISearch empowers users with complete control over AI search results, ensuring decentralized storage and privacy.",
	}
)

Functions

func CreateUserProfile

func CreateUserProfile(cmd *cobra.Command, args []string)

func Deploy

func Deploy(cmd *cobra.Command, args []string)

func Execute

func Execute()

Execute runs the root command and handles any errors.

func ExitWithError

func ExitWithError(msg string, err error)

ExitWithError terminates the program after writing the error to stderr.

func GetAIQueryCIDContent

func GetAIQueryCIDContent(cmd *cobra.Command, args []string)

func GetNetworkAddress

func GetNetworkAddress() string

GetNetworkAddress returns the dial address of the network specified via the network flag. If the network is unknown, it exits with an error.

func ParseAddress

func ParseAddress(addrHex string) (common.Address, error)

ParseAddress converts the hex representation of an Ethereum address into common.Address. It returns an error if the address is malformed.

func StoreCID

func StoreCID(cmd *cobra.Command, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL