Documentation
¶
Overview ¶
Package compat detects old-style SSU flags (from the bash version) and prints friendly migration hints pointing users to the new subcommand syntax.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OldFlagHints = map[string]string{
"--status": "ssu status",
"--push": "ssu push",
"--rollback": "ssu rollback",
"--auto": "ssu update --auto (or: ssu push --auto)",
"--dry-run": "ssu update --dry-run (or: ssu status)",
}
OldFlagHints maps deprecated top-level flags to their new subcommand equivalents.
Functions ¶
func CheckOldFlags ¶
CheckOldFlags inspects the first argument after the binary name. If it matches a deprecated flag, a migration hint is printed to w and the function returns true. Only args[1] is checked so that valid subcommand flags (e.g. "ssu update --dry-run") are not falsely flagged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.