You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@
5
5
[](https://codecov.io/gh/KEINOS/Hello-Cobra"View details on CodeCov.IO")
6
6
[](https://pkg.go.dev/github.com/KEINOS/Hello-Cobra#section-documentation"Read generated documentation of the app")
7
7
8
-
# "Hello, world!" Sample of Cobra with Unit Tests and 100% Coverage
8
+
# "Hello, world!" Sample of Cobra with 100% Code Coverage
9
9
10
-
-[Cobra](https://cobra.dev/) is an awesome framework to help create CLI apps in Golang.
10
+
-[Cobra](https://cobra.dev/) is an awesome framework of Golang to help create CLI apps.
11
11
12
-
**This repo is a draft of [Cobra](https://cobra.dev/)'s "`Hello, world!`" sample with 100% code coverage**, and looking for better-practices all the time.
12
+
**This repo is a sample of [Cobra](https://cobra.dev/)'s "`Hello, world!`" with 100% code coverage**. Including [CI](./github/workflows/)s of static analysis, lint check and formatters to just say "Hello" to the world with Cobra. It is a draft forever, so feel free to PR!
13
13
14
14
## Searching for the best practices of Cobra
15
15
16
-
**We all know keeping 100% of coverage is a myth.** But as a `Golang` and `Cobra` beginner, we wanted a "Hello-world" sample with 100% code coverage, which couldn't be found by googling for "[`golang``cobra``sample``hello``world``coverage``100%`](https://www.google.com/search?q=%22golang%22+cobra+sample+hello+world+coverage+100%)".
16
+
**We all know keeping 100% of code coverage is a myth.** But as a `Golang` and `Cobra` beginner, we wanted a "Hello-world" sample with 100% of coverage, which couldn't be found by googling for "[`golang``cobra``sample``hello``world``coverage``100%`](https://www.google.com/search?q=%22golang%22+cobra+sample+hello+world+coverage+100%)".
17
17
18
18
This repo aims to be the basis for implementing best-practices by keeping the code coverage as high and complexity as low as possible.
19
19
20
-
- Therefore, this is a Forever-[WIP](https://en.wikipedia.org/wiki/Work_in_progress)-Repo. So any PR is welcome!!
20
+
- Therefore, this is a forever-[WIP](https://en.wikipedia.org/wiki/Work_in_progress)-repo. So any PR is welcome!!
21
21
22
22
## How to run tests
23
23
@@ -31,6 +31,7 @@ ok github.com/KEINOS/Hello-Cobra/util 0.015s coverage: 100.0% of statem
31
31
- When coverage was less than 100% and if you find hard which/where to cover and fix, then try:
0 commit comments