easycmd

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

README

Easycmd

Build Go Report Card Coverage Status codecov CodeQL

A terminal tool sample, you can create your own tools base this app

Usage

$ ./easycmd -h   
Long Terminal Usage desc

Usage:
  easycmd [flags]
  easycmd [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  ip          Query your local ip address
  version     Print the version number

Flags:
  -h, --help      help for easycmd
  -v, --version   output version

Use "easycmd [command] --help" for more information about a command.
Version
# equal --version or version
$ easycmd -v 
0.0.3 (9a23740 2023-01-11)
Ip

Query your host ip address

# random service
$ easycmd ip
https://icanhazip.com                     43.77.88.118
# all services
$ easycmd ip -a
https://ifconfig.me                       43.77.88.118
http://ip.sb                              43.77.88.118
http://ip.gs                              43.77.88.118
https://icanhazip.com                     43.77.88.118
https://ipecho.net/plain                  43.77.88.118
https://ifconfig.minidump.info/ip         43.77.88.118
https://ip.3322.org                       43.77.88.118
# query with given service
$ ./easycmd ip -s http://ip.sb
http://ip.sb                              43.77.88.118

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL