Hello-Cobra

✅ Hello, world! sample/example of Cobra in Golang with a 100% coverage test.

MIT License

Stars
18
Hello-Cobra - v1.3.7 Latest Release

Published by KEINOS over 1 year ago

What's Changed

Full Changelog: https://github.com/KEINOS/Hello-Cobra/compare/v1.3.6...v1.3.7

Hello-Cobra - v1.3.6

Published by KEINOS almost 2 years ago

Changelog

  • 8a7c35d fix: issue #42 bump-up CodeQL action v1 --> v2 (PR #49)
  • ef0fad4 Fix: issue #46 remove ".devcontainer" (#47)
  • 9b0e6cd chore: bump-up versions of actions (PR #44)
  • acb8bfd fix: more simple config and warning fixes (PR #43)
  • eea6282 Merge pull request #41 from KEINOS/create-pull-request/patch
  • c32a580 [create-pull-request] automated change
  • 98f7f46 Update README.md
  • 7349bf4 Update README.md
  • 9a8c3be Update README.md
  • c481de7 Merge pull request #39 from KEINOS/create-pull-request/patch
  • 664c70a [create-pull-request] automated change
  • 52ea32f Merge pull request #38 from KEINOS/create-pull-request/patch
  • 3a44562 [create-pull-request] automated change
  • 752809a Merge pull request #35 from KEINOS/create-pull-request/patch
  • a4fb263 [create-pull-request] automated change
Hello-Cobra - v1.3.5

Published by KEINOS almost 2 years ago

What's Changed

Full Changelog: https://github.com/KEINOS/Hello-Cobra/compare/v1.3.4...v1.3.5

Hello-Cobra - v1.3.4

Published by KEINOS almost 3 years ago

Fix

  • Fix #32: go-capturer package name and docker-compose @ PR #33
Hello-Cobra - v1.3.3

Published by KEINOS almost 3 years ago

Feat

  • vscode: Add YAML extension for devcontainer

Fixes

  • fix: Linuxbrew functionality test
  • fix: let docker-compose fail on error
  • fix: shfmt warnings
  • fix: YAML linter
  • fix: "hello-cobra --version" doesn't contain "v" prefix
  • fix: typo intall -> install
  • chore: fix output message
Hello-Cobra - v1.3.2

Published by KEINOS almost 3 years ago

Feat

Automated Homebrew tap release.

Issue #29

Hello-Cobra - v1.3.1

Published by KEINOS almost 3 years ago

Feature

Add test of go install functionality.

  • feat: #27 go install testing and update docs (PR #28)
    • feat: go install test
    • feat: merge test
    • Update Dockerfile
    • fix: image tag

Chore

  • Merge pull request #26 from KEINOS/create-pull-request/patch
Hello-Cobra - v1.3.0

Published by KEINOS almost 3 years ago

Refactor: repository and source structure (PR #25)

Totally refactored. Simpler source and structure.

Feat

  • feat: new Docker image (more secure and light weight. Debian -> Alpine)
  • feat: codeQL-analysis.yml
  • feat: auto mod updater (auto PR on go.mod update)
  • feat: auto merge on go.mod update only (via mergify)
  • feat: include go.sum

Fix

  • fix: #23 bad indentation
  • fix: golangci-lint warnings
  • fix: use latest goclangci-lint for lint check
  • fix: mergify.yml (deprecated "strict" config)
  • fix: redundant checks (only on push to main)
  • fix: remove bin directory

Chore

  • Update platform-test.yaml
  • Update golangci-lint.yaml
  • Update version-tests.yaml
  • Update README.md
Hello-Cobra - v1.2.1

Published by KEINOS over 3 years ago

Feature

  • Deprecation of TConfigApp

    • Easy-to-notice type name of config file struct (#22)
      • TConfigApp -> TConfigFile
      • TConfigApp is now an alias of TConfigFile and will be deleted in v1.3.0
  • Enabled more linters for golangci-lint

Fixes

  • fix: stylecheck ST1017 - no Yoda conditions
    • ST1017: don't use Yoda conditions ()
  • update: go.mod (Cobra version)
  • update: merge-tests.yaml
  • update: README.md
  • chore: add reference URL for lint errors
Hello-Cobra - v1.2.0

Published by KEINOS over 3 years ago

Speed up workflow testing by getting away from Docker (PR #21)

Now .devcontainer is isolated from the CIs.

Users who used this repo as a template may delete ".devcontainer" if not needed.

Feature

  • feat: requirement checker for merge testing
  • feat: use golangci-lint v1.36.0 -> latest
  • feat: coverage action w/out docker
  • feat: merge-tests.yaml w/out docker
  • feat: use pre-installed shellcheck
  • feat: ".shellceckrc"
    • For older version compatibility. (CI uses old version)

Fixes

  • fix: shell check errors
  • fix: golangci-lint.yaml as dispatch workflow only
    • Since merge-tests.yaml does the same thing limit it to workflow_dispatch as an individual test
Hello-Cobra - v1.1.3

Published by KEINOS over 3 years ago

  • Feature

    • feat: CodeCov.IO coverage badge (PR #20)
    • feat: add test of flag when using default settings
  • docs: add detailed usage in the comment

  • refactor: easier to read the flow

  • docs: describe that test action is a full-test

Hello-Cobra - v1.1.2

Published by KEINOS over 3 years ago

Feature

  • feat: go mod tidy on start up
    • Due to prevent warnings while booting container from a newly cloned repo via "Remote - Containers" in VSCode.
  • feat: Auto-detect local localse

Fixes

  • fix: remove ".vscode" dir since no more grammarly extension is used
  • fix: #14 remove redundancy in devcontainer
  • fix: remove unused VSCode setting file

Else

  • chore: update module
Hello-Cobra - v1.1.1

Published by KEINOS over 3 years ago

  • Update README.md
  • fix: remove grammarly
  • fix: simpler file structure (#18)
  • fix: pkg util -> conf
    • conf is more easy to understand
  • fix: add cmd prefix in file name of commands
  • refactor: common.go for exported func and const
Hello-Cobra - v1.1.0

Published by KEINOS over 3 years ago

  • Feat: GolangCI-Lint
Hello-Cobra - v1.0.3

Published by KEINOS over 3 years ago

  • Feat: Config file sample using Viper
Hello-Cobra - v1.0.2

Published by KEINOS over 3 years ago

Hello-Cobra - v1.0.1

Published by KEINOS over 3 years ago

Hello-Cobra - v1.0.0 Initial Release

Published by KEINOS over 3 years ago

Package Rankings
Top 7.57% on Proxy.golang.org
Badges
Extracted from project README
go1.15+ Go Reference Test on macOS/Win/Linux go1.15+ golangci-lint codecov Go Report Card CodeQL