Skip to content

Gossh Version 1.15.0

Compare
Choose a tag to compare
@windvalley windvalley released this 10 Jan 12:25
· 11 commits to main since this release
4e68444

Added

Add dangerous commands detection feature for subcommand command and script:

  • Add global flag: -B, --run.command-blacklist for specifying dangerous commands.
    Default dangerous commands: ["rm", "reboot", "halt", "shutdown", "init", "mkfs", "mkfs.*", "umount", "dd"]

  • Add flag -n, --no-safe-check for subcommands command and script to disable dangerous commands detection.

  • Add option run.command-blacklist to config file for subcommand config.

Changed

  • gossh fetch flags have been changed:
    Before: -t, --tmp-dir string directory of target hosts for storing temporary zip file (default "$HOME")
    After: -T, --tmp-dir string directory for storing temporary zip file on target hosts, only useful if the -z flag is used (default "$HOME")

  • Add short flag -t for --timeout.command:
    Before: --timeout.command int
    After: -t, --timeout.command int

  • Optimize help usage information for subcommands.

  • Optimize output messages and enrich debug log information.