Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ttnctl", Short: "Control The Things Network from the command line", Long: `ttnctl controls The Things Network from the command line.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { var logLevel = log.InfoLevel if viper.GetBool("debug") { logLevel = log.DebugLevel } ctx = apex.Wrap(&log.Logger{ Level: logLevel, Handler: cliHandler.New(os.Stdout), }) if viper.GetBool("debug") { util.PrintConfig(ctx, true) } ttnlog.Set(ctx) grpclog.SetLogger(grpc.Wrap(ttnlog.Get())) }, }
RootCmd is the entrypoint for ttnctl
Functions ¶
Types ¶
This section is empty.
Source Files ¶
- applications.go
- applications_add.go
- applications_delete.go
- applications_info.go
- applications_list.go
- applications_pf.go
- applications_pf_set.go
- applications_register.go
- applications_select.go
- applications_unregister.go
- components.go
- components_add.go
- components_check.go
- components_info.go
- components_list.go
- components_token.go
- config.go
- devices.go
- devices_delete.go
- devices_info.go
- devices_list.go
- devices_personalize.go
- devices_register.go
- devices_set.go
- discover.go
- downlink.go
- gateways.go
- gateways_delete.go
- gateways_edit.go
- gateways_info.go
- gateways_list.go
- gateways_register.go
- gateways_status.go
- gateways_token.go
- join.go
- root.go
- selfupdate.go
- subscribe.go
- uplink.go
- user.go
- user_login.go
- user_logout.go
- user_register.go
- version.go
Click to show internal directories.
Click to hide internal directories.