Documentation ¶
Overview ¶
Copyright © 2024 Lawrence McDaniel <lawrence@querium.com>
Copyright © 2024 Lawrence McDaniel <lawrence@querium.com>
Copyright © 2024 Lawrence McDaniel lawrence@querium.com
Copyright © 2024 Lawrence McDaniel <lawrence@querium.com>
Copyright © 2024 Lawrence McDaniel <lawrence@querium.com>
Copyright © 2024 Lawrence McDaniel <lawrence@querium.com>
Index ¶
- Constants
- Variables
- func APIRequest(slug string, kwargs map[string]string, fileContents ...string) ([]byte, error)
- func ConsoleOutput(bodyJson []byte)
- func ErrorOutput(err error)
- func Execute(version string)
- func JsonOutput(bodyJson []byte)
- func TableOutput(bodyJson []byte)
- func YamlOutput(bodyJson []byte)
- type Body
- type Data
- type InnerData
- type Item
- type Title
Constants ¶
View Source
const ( RootDomain = "platform.smarter.sh" ApiBasePath = "/api/v1/cli/" )
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "smarter",
Short: "A command-line interface for working with Smarter resources",
Long: `A command-line interface for working with Smarter resources.
Using the smarter cli, you can create Smarter plugins, add these to a ChatBot,
and deploy the ChatBot to a custom URL. You can interact with the ChatBot
on the command line, view chat log data, and manage your Smarter account.
Support: https://smarter.sh and support@smarter.sh.`,
}
View Source
var Version string
Functions ¶
func APIRequest ¶
func ConsoleOutput ¶
func ConsoleOutput(bodyJson []byte)
func ErrorOutput ¶
func ErrorOutput(err error)
func Execute ¶
func Execute(version string)
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.
func JsonOutput ¶
func JsonOutput(bodyJson []byte)
func TableOutput ¶
func TableOutput(bodyJson []byte)
func YamlOutput ¶
func YamlOutput(bodyJson []byte)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.