# go.shenmo-water-pipe **Repository Path**: zinface/shenmo-water-pipe ## Basic Information - **Project Name**: go.shenmo-water-pipe - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-09 - **Last Updated**: 2025-04-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 代号:小水管 - 迷你架构 ![Alt text](water-pipe.png) - 使用 ``` shenmo 小水管工具 - v0.0.1(127.0.0.1) Usage: shenmo-water-pipe [command] Available Commands: completion Generate the autocompletion script for the specified shell help Help about any command pull 拉取文件 push 推送文件 remote A brief description of your command server 小水管服务器 Flags: -h, --help help for shenmo-water-pipe -t, --toggle Help message for toggle Use "shenmo-water-pipe [command] --help" for more information about a command. ``` - 构建 - 默认 127.0.0.1 水管服务器 ```shell # 无任何配置 go build . go install . # 构建默认水管服务器为 10.10.10.10 的水管工具 go build -ldflags "-X 'gitee.com/spark-community-works-collections/shenmo-water-pipe/cmd.REMOTE_HOST=10.10.10.10'" # 构建时指定它的版本号 go build -ldflags "-X 'gitee.com/spark-community-works-collections/shenmo-water-pipe/cmd.VERSION=v0.0.1'" # 或在 go install 安时配置 go build -ldflags "-X 'gitee.com/spark-community-works-collections/shenmo-water-pipe/cmd.REMOTE_HOST=10.10.10.10' -X 'gitee.com/spark-community-works-collections/shenmo-water-pipe/cmd.VERSION=v0.0.1'" ``` - 安装 ``` go install gitee.com/spark-community-works-collections/shenmo-water-pipe@latest ```