xxwcli

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

xxwcli 命令行(脚手架)工具

脚手架命令

D:\GolandProjects\xxwcli>xxwcli.exe -h
NAME:
   xxwcli - 命令行工具

USAGE:
    [global options] command [command options] [arguments...]

VERSION:
   v0.0.1

AUTHOR:
   xuxiaowei-com-cn/xxwcli: https://github.com/xuxiaowei-com-cn/xxwcli <徐晓伟 <[email protected]>>

COMMANDS:
   ip       获取当前计算机的 IP 地址
   httpd    http 代理
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

COPYRIGHT:
   徐晓伟 <[email protected]>

D:\GolandProjects\xxwcli>
D:\GolandProjects\xxwcli>xxwcli.exe ip -h
NAME:
ip - 获取当前计算机的 IP 地址

USAGE:
ip [command options] [arguments...]

OPTIONS:
--v4  仅显示 IPv4 地址
--v6  仅显示 IPv6 地址


D:\GolandProjects\xxwcli>
D:\GolandProjects\xxwcli>xxwcli.exe httpd -h
NAME:
httpd - http 代理

USAGE:
httpd [command options] [arguments...]

OPTIONS:
--path value  指定提供代理的文件夹 (default: ".")
--dir         代理目录
--port value  指定代理服务的端口 (default: 8080)


D:\GolandProjects\xxwcli>

开发命令

get
go get github.com/urfave/cli
go get github.com/fatih/color
mod
go mod download
run
go run xxwcli.go
build
go build xxwcli.go
require
  1. github.com/urfave/cli
    1. 文档
    2. 一个简单、快速、有趣的程序包,用于在Go中构建命令行应用程序

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
buildinfo module

Jump to

Keyboard shortcuts

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