commands

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthCmd = &cobra.Command{
	Use:   "auth [bot] [key]",
	Short: "add a key to the key register to be manage your bot through the API",
	Args:  cobra.MinimumNArgs(2),
	RunE:  AuthF,
}
View Source
var DeployCmd = &cobra.Command{
	Use:   "deploy [bot] [function configuration]",
	Short: "Deploys a given function to a bot",
	Args:  cobra.MinimumNArgs(2),
	RunE:  FDeploy,
}
View Source
var NewBotCmd = &cobra.Command{
	Use:   "bot [bot name]",
	Short: "Create a new bot with given name",
	Args:  cobra.MinimumNArgs(1),
	RunE:  FNewBot,
}
View Source
var NewCmd = &cobra.Command{
	Use:   "new [bot | function | secret]",
	Short: "Create a new function, bot or secret with given name",
	Args:  cobra.MinimumNArgs(1),
}
View Source
var NewFuncCmd = &cobra.Command{
	Use:   "function [function name]",
	Short: "Create a new function with given name",
	Args:  cobra.MinimumNArgs(1),
	RunE:  FNewFunc,
}
View Source
var NewSecretCmd = &cobra.Command{
	Use:   "secret [secret key] [secret]",
	Short: "Create a new bot with given name",
	Args:  cobra.MinimumNArgs(2),
	RunE:  FNewSecret,
}
View Source
var StartCmd = &cobra.Command{
	Use:   "start",
	Short: "Start the Discless background daemon",
	RunE:  StartDaemon,
}
View Source
var StopCmd = &cobra.Command{
	Use:   "stop",
	Short: "Stop the Discless background daemon",
	RunE:  StopDaemon,
}
View Source
var UpCmd = &cobra.Command{
	Use:   "up [bot configuration file]",
	Short: "Run your bot",
	Args:  cobra.MinimumNArgs(1),
	RunE:  FUp,
}

Functions

func AuthF

func AuthF(c *cobra.Command, args []string) error

func FDeploy

func FDeploy(c *cobra.Command, args []string) error

func FNewBot

func FNewBot(c *cobra.Command, args []string) error

func FNewFunc

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

func FNewSecret

func FNewSecret(command *cobra.Command, args []string) error

func FUp

func FUp(c *cobra.Command, args []string) error

func INewBot

func INewBot()

func INewSecret

func INewSecret()

func IStart

func IStart()

func IUp

func IUp()

func PostDeploy

func PostDeploy(name string, function config2.Function, bot string) error

func StartDaemon

func StartDaemon(c *cobra.Command, args []string) error

func StopDaemon

func StopDaemon(c *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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