mygo

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 1 Imported by: 0

README

MyGo

A Lifetime Golang Monorepo Manager.

Directory Structure Example

.
...
├── pkg
│   └── nagasaki
│   └── soyo
├── README.md
├── LICENSE
...

mygo publish sub packages with only necessary files.

for pkg/nagasaki in example project structure, mygo publish following files to sub package tag:

pkg/nagasaki/...
LICENSE

Usage

# create a new sub package (just create directory)
mygo new pkg/tomori

# publish a sub package, auto find latest tag:
#    upgrade semver patch part, if package
mygo publish pkg/tomori

# publish a sub package, auto find latest tag, upgrade semver and push
mygo publish pkg/tomori --patch
mygo publish pkg/tomori --minor
mygo publish pkg/tomori --major

# publish with exact version (without "v" prefix)
mygo publish pkg/tomori --version 1.2.3

# add more files to publish, known issue:
#   - can't use glob pattern, only support exact file name
#   - only support file in project root dir
mygo publish pkg/tomori --includes "README.md" --includes "another file"

# not publish license file
mygo publish pkg/tomori --no-license

# publish sub package with message
mygo publish pkg/tomori --message "add new feature"

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