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())) if viper.GetBool("allow-insecure") { api.AllowInsecureFallback = true } }, }
RootCmd is the entrypoint for ttnctl
Functions ¶
Types ¶
This section is empty.
Source Files ¶
- applications.go
- applications_add.go
- applications_collaborators.go
- applications_collaborators_add.go
- applications_collaborators_delete.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
- collaborators.go
- components.go
- components_add.go
- components_check.go
- components_collaborators.go
- components_collaborators_add.go
- components_collaborators_delete.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_register_on_join.go
- devices_set.go
- devices_simulate.go
- discover.go
- downlink.go
- gateways.go
- gateways_collaborators.go
- gateways_collaborators_add.go
- gateways_collaborators_delete.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.