{"id":18775991,"url":"https://github.com/way29/version-helper","last_synced_at":"2025-12-15T05:30:14.963Z","repository":{"id":57562653,"uuid":"331160612","full_name":"WAY29/version-helper","owner":"WAY29","description":"A helper for version manage","archived":false,"fork":false,"pushed_at":"2022-02-21T11:43:52.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-29T09:25:22.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WAY29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-20T01:43:44.000Z","updated_at":"2022-02-21T11:06:15.000Z","dependencies_parsed_at":"2022-09-01T12:22:10.895Z","dependency_job_id":null,"html_url":"https://github.com/WAY29/version-helper","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fversion-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fversion-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fversion-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fversion-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WAY29","download_url":"https://codeload.github.com/WAY29/version-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239683590,"owners_count":19679987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:44:27.139Z","updated_at":"2025-12-15T05:30:12.894Z","avatar_url":"https://github.com/WAY29.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Version-Helper-4.5.0\n\nA helper for version manage\n\n## Usage\n```\nUsage: version-helper [-v] COMMAND [arg...]\n\nA helper for version manage\n\nOptions:\n  -v, --version   Show the version and exit\n\nCommands:\n  init            Create .version.toml to initialize\n  info            Show version information\n  set             Set version\n  major           Major version upgrade\n  minor           Minor version upgrade\n  patch           Patch version upgrade\n  banner          Set banner for version\n\nRun 'version-helper COMMAND --help' for more information on a command.\n```\n\n## Tips\n- Set environment variable LANG contains 'UTF' to enjoy beautiful unicode output!\n\n## Installation\n***make sure you can run git command before install it***\n\njust install it by golang \n\n`go install github.com/WAY29/version-helper@latest`\n\nor download releases from github releases\n\nor build it\n\n`go build .`\n\n## example\n```\ngo get github.com/WAY29/version-helper\ncd project_dir/\nversion-helper init ; version is [major].[minor].[patch]-{banner}\n# some bug fixes\nversion-helper patch\n# some new updates\nversion-helper minor\n# some major updates with banner\nversion-helper major alpha\n# set banner\nversion-helper banner beta\n# show version information\nversion-helepr info\n# self-update\nversion-helper self-update\n```\nIn `.version.toml`, you can use \\`\\` to command execution for `[[Operate]].replece` just like bash, but does not support nesting.\n\n## Depends\n- [go-toml](https://github.com/pelletier/go-toml)\n- [mow-cli](https://github.com/jawher/mow.cli)\n- [blang/semver](https://github.com/blang/semver)\n- [rhysd/go-github-selfupdate](https://github.com/rhysd/go-github-selfupdate)\n- [smartystreets/goconvey](https://github.com/smartystreets/goconvey)\n\n## Reference\n[bumpversion](https://github.com/peritus/bumpversion)\n\n## log\n\n### 4.5.0\n```\nadd main.extraCommands for run extraCommands after update version\n```\n\n### 4.4.1\n```\nnew tag for auto release\n```\n### 4.4.0\n```\nadd goreleaser to auto release\n```\n### 4.3.0\n```\nadd self-update subcommand to update version-helper\nrefactor code\n```\n### 4.2.0\n```\nnow info subcommand will try to find .version.toml recursively from the parent directory\n```\n### 4.1.0\n```\nnow version-helper will try to guarantee atomicity, it will check config before update\n```\n### 4.0.0\n```\nnow tag will commit before tag, please make sure your working tree is clean. commit message is 'Update {version}'\n```\n\n### V3.0.0\n```\nadd test for core functions\nfix a bug that failed when operate.location is empty\nfix a output when tag is true\n```\n\n### V2.1.0\n```\nAdd new subcommand: info\n\nUsage: version-helper info\n\nShow version information\n```\n\n### V2.0.0\n```\nChange some output\nAllow adding version number,pattern is {version}-{banner}\nAdd new subcommand: banner\n\nUsage: version-helper banner [BANNER]\n\nSet banner for version, set the banner to empty to clear the banner\n\nArguments:     \n  BANNER       banner you want to set\n\n```\n\n### V1.1.0\n```\nChange the regular expression from non-greedy mode to greedy mode\nChange some output\n```\n\n### V1.0.2\n```\nremove some noise success message\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Fversion-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fway29%2Fversion-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Fversion-helper/lists"}