panic

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2022 Flagship Team flagship@abtasty.com

Index

Constants

This section is empty.

Variables

View Source
var PanicCmd = &cobra.Command{
	Use:   "panic",
	Short: "Manage panic mode",
	Long:  `Manage panic mode in your account`,
	Run: func(cmd *cobra.Command, args []string) {
		if !(panicStatus == "on" || panicStatus == "off") {
			fmt.Fprintln(cmd.OutOrStdout(), "Status can only have 2 values: on or off ")
			return
		}
		_, err := httprequest.HTTPUpdatePanic(panicStatus)
		if err != nil {
			log.Fatalf("error occurred: %v", err)
		}
		fmt.Fprintf(cmd.OutOrStdout(), "Panic set to %v\n", panicStatus)

	},
}

panicCmd represents the panic command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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