{"id":22528700,"url":"https://github.com/zing-dev/soft-version","last_synced_at":"2025-03-28T04:41:38.252Z","repository":{"id":57545227,"uuid":"225329809","full_name":"zing-dev/soft-version","owner":"zing-dev","description":"soft-version","archived":false,"fork":false,"pushed_at":"2023-07-26T10:12:01.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T05:41:20.069Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zing-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T08:59:35.000Z","updated_at":"2023-07-26T10:11:44.000Z","dependencies_parsed_at":"2025-02-02T05:40:26.465Z","dependency_job_id":"3382de13-8721-4f94-9ba9-86422fa31503","html_url":"https://github.com/zing-dev/soft-version","commit_stats":null,"previous_names":["zhangrxiang/soft-version"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fsoft-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fsoft-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fsoft-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zing-dev%2Fsoft-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zing-dev","download_url":"https://codeload.github.com/zing-dev/soft-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245972629,"owners_count":20702710,"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-12-07T07:12:03.266Z","updated_at":"2025-03-28T04:41:38.230Z","avatar_url":"https://github.com/zing-dev.png","language":"Go","readme":"# 软件版本命令控制显示\n\n## Example\nfirst use the library such as:\n```go\npackage main\n\nimport (\n\t_ \"embed\"\n\t\"github.com/urfave/cli/v2\"\n\t\"github.com/zing-dev/soft-version/soft\"\n\t\"os\"\n)\n\n//go:embed version.json\nvar str []byte\n\nfunc main() {\n\tapp := soft.Cli{App: cli.NewApp(),Src: str}\n\tapp.Run(os.Args)\n}\n\n\n```\nthen open your terminal:\n```shell script\n$ go build\n\n$ ./[You Soft] init\n```\nupdate version.json file under your project,input your project info\n```json\n{\n  \"name\": \"xx-软件\",\n  \"alias\": \"别名\",\n  \"author\": \"作者\",\n  \"version\": {\n    \"version\": \"0.0.1\",\n    \"log\": \"init\",\n    \"status\": \"Base\"\n  },\n  \"copyright\": \"All rights reserved\",\n  \"inherit\": true\n}\n```\nafter go on\n```shell script\n$ ./[You Soft] build\n$ go build\n$ ./[You Soft] help\n\nusage: xx-软件 [\u003cflags\u003e] \u003ccommand\u003e [\u003cargs\u003e ...]\n\n作者\n\nFlags:\n  --help  Show context-sensitive help (also try --help-long and --help-man)\n.\n\nCommands:\n  help [\u003ccommand\u003e...]\n    Show help.\n\n  run\n    运行xx-软件\n\n  version\n    xx-软件版本\n\n  full-version\n    xx-软件版本全称\n\n  info\n    xx-软件版本信息\n\n  build\n    开发编译[软件开发者专用]\n\n  init\n    初始化软件版本配置文件[软件开发者专用]\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzing-dev%2Fsoft-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzing-dev%2Fsoft-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzing-dev%2Fsoft-version/lists"}