Documentation ¶
Index ¶
Constants ¶
View Source
const (
CommandName = "rmsgmkcsv"
)
Variables ¶
View Source
var ( ErrMaxLessThanMin = errors.New( "Flag 'max' degrees flag is less than flag 'min' degrees flag.") ErrStepLessThanZero = errors.New( "The 'step' degrees flag is less than zero.") ErrNoExec = errors.New( "No executable - see the example from running this command: '" + CommandName + " help create exec' (w/o the quotes)") ErrStepsLargerThanMaxInt32 = errors.New( "The number of steps is larger than 2147483647 ((2³¹)-1)") ErrMaxMinusMinIsNegative = errors.New( "Flag 'max' minus flag 'min' has a negative sign (is < 0).") ErrStepDivisionByZero = errors.New( "Flag 'step' must not be zero (0).") )
View Source
var ( RootCmd = &cobra.Command{ Use: CommandName, Short: "rmsgmkcsv is a CLI tool that create decimal " + "bearings/azimuths to microprocessor H-bridge actuator integers.", Long: "rmsgmkcsv either creates predictable linear values, or calls " + "an external program/script interpreter to make one translation " + "from one decimal bearing/azimuth to one whole integer value, " + "and does that for a specified range of decimal degrees, with a " + "step degree.", } )
Functions ¶
This section is empty.
Types ¶
type CreateFlags ¶
type CreateFlags struct { Degrees Degrees FileName string TruncateFile bool MCU CreateMCUFlags }
type CreateMCUFlags ¶
type TopLevelCommands ¶
type TopLevelCommands struct {
Create CreateFlags
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.