Categorygithub.com/assistcontrol/get
repositorypackage
1.0.9
Repository: https://github.com/assistcontrol/get.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

get

A very simple file/web viewer and fetcher.

get [-f] [-o [filename]] <URL or path>

Examples:

CommandResult
get /etc/passwdSyntax-highlight /etc/passwd
get example.comSyntax-highlight https://example.com
get -o example.comSave to get.output.html
get -o example.com/foo.gifSave to ./foo.gif
get -o outp.gif example.com/foo.gifSave to ./outp.gif

Features:

  • Works on local paths and remote URLs (HTTP/HTTPS only)
    • URLs can be specified with or without a protocol (ex. example.com is the same as https://example.com)
    • Unless http:// is specified, will always try HTTPS first and fall back to HTTP
  • Automatic syntax highlighting if it's outputting to a terminal
  • -o without a filename will guess an appropriate name
  • Refuses to overwrite files, unless -f is passed