mirror of
https://github.com/nushell/nushell
synced 2025-01-26 03:45:19 +00:00
396 B
396 B
url scheme
gets the scheme (eg http, file) of a url
Usage
> url scheme ...args {flags}
Parameters
- ...args: optionally operate by path
Flags
- -h, --help: Display this help message
Examples
Get scheme of a url
> echo 'http://www.example.com' | url scheme
You get an empty string if there is no scheme
> echo 'test' | url scheme