Documentation ¶
Index ¶
Constants ¶
View Source
const APPID = "com.github.jsurloppe.fbxcli"
View Source
const APPNAME = "fbxcli"
View Source
const APPVERSION = "0"
Variables ¶
View Source
var App = &fbxapi.App{ AppID: APPID, AppVersion: APPVERSION, }
View Source
var ENV struct { CfgFile string FreeboxsList map[string]*fbxapi.Freebox CurrentAlias string Cwd map[string]string }
View Source
var RootCmd = &cobra.Command{ Use: "fbx", Short: "fbx is a freebox command line utility", Long: "A (non+)interactive cli for managing your currentFreebox", PersistentPreRun: func(cmd *cobra.Command, args []string) { defer panicHandler() alias, _ := cmd.Flags().GetString("freebox") if alias == "" { alias = getDefaultFreebox() } if alias != "" { err := connect(alias) checkErr(err) } }, PersistentPostRun: func(cmd *cobra.Command, args []string) { PoolLogout() updateConfig() }, }
View Source
var ShellCmd = &cobra.Command{ Use: "shell", Short: "fbx is a freebox command line utility", Long: "A (non+)interactive cli for managing your currentFreebox", Run: func(cmd *cobra.Command, args []string) { shell(cmd, args) }, PostRun: func(cmd *cobra.Command, args []string) { rlshell.Close() }, }
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func PoolLogout ¶
func PoolLogout()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.