gitcm

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

gitcm

git commit 增强工具 gitcm (Git Commit IMproved)

开发文档

安装 cobra-cli

go install github.com/spf13/cobra-cli@latest

新建 go mod

go mod init code.liaosirui.com/srliao/gitcm

初始化 cli 工具

cobra-cli init --author "cyril@liaosirui.com"

增加一个子命令 config

cobra-cli add config --author "cyril@liaosirui.com" -p rootCmd

发布 release 信息

go install github.com/goreleaser/goreleaser@latest

在项目根目录生成 .goreleaser.yml 配置:

goreleaser init

发布 release

git tag -a v0.0.1 -m "First release"
git push origin v0.0.1

export GITEA_TOKEN="eb9dd266a3770b356b750197f75e1fc6bf48a178"
goreleaser release --rm-dist

使用文档

安装
export GONOPROXY=code.liaosirui.com

go install code.liaosirui.com/srliao/gitcm@latest
子命令
config

包含子命令:

  • list:列举配置文件内容
list

示例:

gitcm config list --local

Documentation

Overview

Copyright © 2022 cyril@liaosirui.com

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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