func init()

in cmd/run-command.go [35:54]


func init() {
	runCommandCmd.Flags().IntVar(&timeout, "timeout", utils.DefaultRunCommandTimeoutInSeconds, "timeout in seconds for the command to complete")
	utils.AddNodeFlags(runCommandCmd)
	utils.AddCommonFlags(runCommandCmd, &commonFlags)

	// We want to truncate the tail by default because most of commands used for
	// debugging print a column header which is necessary to understand the
	// output. In addition, if the output is too long, those tools usually
	// provide mechanisms for filtering. Notice it is the opposite behaviour of
	// the Azure CLI.
	runCommandCmd.PersistentFlags().BoolVarP(
		&truncateHead,
		"truncate-head", "",
		false,
		"the output will be always truncated at the tail to return the first 4096 bytes by default, "+
			"this flag allows to return the latest 4096 bytes instead",
	)

	rootCmd.AddCommand(runCommandCmd)
}