cmd

package
v0.0.0-...-f44913e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunCmd = &cobra.Command{
	Use:   "go-chatgpt-twitter-bot <handle>",
	Short: "Twitter bot backed by ChatGPT",
	Long:  `Twitter bot backed by ChatGPT.`,
	Run: func(cmd *cobra.Command, args []string) {
		err := performCommand(cmd, args)
		if err != nil {
			bail(err)
		}
	},
}

SearchCmd is the main command for Cobra.

Functions

This section is empty.

Types

type Config

type Config struct {
	Completion          string `json:"completion"`
	DisplayVersion      bool   `json:"-"`
	Verbose             bool   `json:"verbose,string"`
	Handle              string `json:"handle"`
	UserID              string `json:"userid"`
	DryRun              bool   `json:"dryrun"`
	CharacterBackground string `json:"character_background"`
	Bot                 bool   `json:"bot"`
	Prompt              string `json:"Prompt"`
}

Config stores all the application configuration.

func (*Config) Load

func (c *Config) Load() error

Load reads the configuration from ~/.config/go-chatgpt-twitter-bot/config and loads it into the Config struct. The config is in UCL format.

Jump to

Keyboard shortcuts

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