manager

command module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

README


Table of Contents



自开发程序管理器

Usage

  • install子命令

    该子命令用于安装/更新自开发的程序/脚本,有以下参数:

    • 'all':安装/更新程序和脚本
    • 'go': 安装/更新基于go开发的程序
    • 'shell':安装/更新shell脚本
  • setup子命令

    该子命令用于配置安装的程序/脚本,有以下参数:

    • 'all':配置以下所有程序/脚本
    • 'pip':配置pip使用的镜像源
    • 'npm':配置npm使用的镜像源
    • 'docker':配置Docker Root Directory
    • 'git':配置git用户信息等并生成SSH密钥
  • config子命令

    该子命令用于操作配置文件,有以下参数:

    • 'create':创建默认内容的配置文件,可以使用全局参数'--config'指定配置文件路径
    • 'force':当指定的配置文件已存在时,使用该参数强制覆盖原文件
    • 'print':打印配置文件内容
  • version子命令

    查看程序版本信息

  • help

    查看程序帮助信息

Compile

  • 编译当前平台可执行文件:
go build main.go
  • 交叉编译指定平台可执行文件:
# 适用于Linux AArch64平台
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build main.go
# 适用于macOS amd64平台
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go
# 适用于Windows amd64平台
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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