diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fc51337..d0ad1de 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,6 +14,12 @@ updates: - "andyone" reviewers: - "andyone" + groups: + all: + applies-to: version-updates + update-types: + - "minor" + - "patch" - package-ecosystem: "github-actions" directory: "/" diff --git a/.github/images/card.svg b/.github/images/card.svg new file mode 100644 index 0000000..b2e594f --- /dev/null +++ b/.github/images/card.svg @@ -0,0 +1,4 @@ + + + + diff --git a/.github/images/license.svg b/.github/images/license.svg new file mode 100644 index 0000000..8990e77 --- /dev/null +++ b/.github/images/license.svg @@ -0,0 +1 @@ +license: Apache-2.0licenseApache-2.0 \ No newline at end of file diff --git a/.github/images/usage.svg b/.github/images/usage.svg new file mode 100644 index 0000000..9200371 --- /dev/null +++ b/.github/images/usage.svg @@ -0,0 +1,94 @@ + + + + scratch Usage + + + + + + + + + + + + + + + + + + + Terminal + + Usage: scratch {options} template target-dir + Options + --no-color, -nc .. Disable colors in output + --help, -h ....... Show this help message + --version, -v .... Show version + Examples + scratch package + List files in template "package" + scratch package . + Generate files based on template "package" in current directory + scratch service $GOPATH/src/github.com/essentialkaos/myapp + Generate files based on template "service" in given directory + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..08cd688 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/scratch +/vendor diff --git a/Makefile b/Makefile index 24d6724..b0e83d7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ################################################################################ -# This Makefile generated by GoMakeGen 3.0.1 using next command: +# This Makefile generated by GoMakeGen 3.0.2 using next command: # gomakegen --mod . # # More info: https://kaos.sh/gomakegen @@ -109,6 +109,6 @@ help: ## Show this info | sed 's/ifdef //' \ | awk 'BEGIN {FS = " .*?## "}; {printf " \033[32m%-11s\033[0m %s\n", $$1, $$2}' @echo -e '' - @echo -e '\033[90mGenerated by GoMakeGen 3.0.1\033[0m\n' + @echo -e '\033[90mGenerated by GoMakeGen 3.0.2\033[0m\n' ################################################################################ diff --git a/README.md b/README.md index cc876b3..fe3083f 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -

+

GitHub Actions CI Status Codebeat badge GitHub Actions CodeQL Status - +

InstallationCommand-line completionUsageContributingLicense

@@ -65,26 +65,7 @@ scratch --generate-man | sudo gzip > /usr/share/man/man1/scratch.1.gz ### Usage -``` -Usage: scratch {options} template target-dir - -Options - - --no-color, -nc Disable colors in output - --help, -h Show this help message - --version, -v Show version - -Examples - - scratch package - List files in template "package" - - scratch package . - Generate files based on template "package" in current directory - - scratch service $GOPATH/src/github.com/essentialkaos/myapp - Generate files based on template "service" in given directory -``` + ### Contributing diff --git a/app/app.go b/app/app.go index baac753..c8c92db 100644 --- a/app/app.go +++ b/app/app.go @@ -39,7 +39,7 @@ import ( const ( APP = "scratch" - VER = "0.3.1" + VER = "0.3.2" DESC = "Utility for generating blank files for apps and services" ) diff --git a/go.mod b/go.mod index c261738..b4edb4b 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,10 @@ module github.com/essentialkaos/scratch go 1.18 -require github.com/essentialkaos/ek/v12 v12.125.0 +require github.com/essentialkaos/ek/v12 v12.127.0 require ( github.com/essentialkaos/depsy v1.3.0 // indirect github.com/essentialkaos/go-linenoise/v3 v3.6.0 // indirect - golang.org/x/sys v0.20.0 // indirect + golang.org/x/sys v0.21.0 // indirect ) diff --git a/go.sum b/go.sum index 12a6b1e..9ecb203 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,12 @@ github.com/essentialkaos/check v1.4.0 h1:kWdFxu9odCxUqo1NNFNJmguGrDHgwi3A8daXX1nkuKk= github.com/essentialkaos/depsy v1.3.0 h1:CN7bRgBU2jGTHSkg/Sh38eDUn7cvmaTp2sxFt2HpFeU= github.com/essentialkaos/depsy v1.3.0/go.mod h1:kpiTAV17dyByVnrbNaMcZt2jRwvuXClUYOzpyJQwtG8= -github.com/essentialkaos/ek/v12 v12.125.0 h1:LVtDVESX0Rr0/34ZBOwgmpATaQfoQ/FDExqZyAzQp8I= -github.com/essentialkaos/ek/v12 v12.125.0/go.mod h1:cnS6YLrSZc9Ct7NvS5Qx0/7+sMRcEwPp4vGNHMq95/Y= +github.com/essentialkaos/ek/v12 v12.127.0 h1:fU5A+QbIZ7NTq1K5jGVwAWwuLtBUhsIKuRWYT78hE+Q= +github.com/essentialkaos/ek/v12 v12.127.0/go.mod h1:71IJ7m82hgjrvWnhL+z0vIhguxz47/rfVma5/CeI5Fw= github.com/essentialkaos/go-linenoise/v3 v3.6.0 h1:deLcrodtLIkcHjNyW/MoQpjznXPVqvwlspxk7s/5YeY= github.com/essentialkaos/go-linenoise/v3 v3.6.0/go.mod h1:Fi6kLdZdURkXHpRkIiX2nFGORNv81CXTZ2Mn72i/cn0= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=