Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.0 #110

Merged
merged 106 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
211bd36
Bump github.com/essentialkaos/ek/v12 from 12.60.0 to 12.60.1
dependabot[bot] Mar 2, 2023
8e7462f
Merge pull request #58 from essentialkaos/dependabot/go_modules/devel…
andyone Mar 2, 2023
8d5a563
Bump github.com/essentialkaos/ek/v12 from 12.60.1 to 12.61.0
dependabot[bot] Mar 9, 2023
712e752
Merge pull request #59 from essentialkaos/dependabot/go_modules/devel…
andyone Mar 9, 2023
4618086
Bump github.com/essentialkaos/ek/v12 from 12.61.0 to 12.62.0
dependabot[bot] Mar 10, 2023
1402729
Merge pull request #60 from essentialkaos/dependabot/go_modules/devel…
andyone Mar 10, 2023
bf48c6e
Bump github.com/essentialkaos/ek/v12 from 12.62.0 to 12.63.0
dependabot[bot] Mar 16, 2023
bc2a3d7
Bump actions/setup-go from 3 to 4
dependabot[bot] Mar 16, 2023
f0df0d7
Merge pull request #62 from essentialkaos/dependabot/github_actions/d…
andyone Mar 16, 2023
54cddcc
Merge pull request #61 from essentialkaos/dependabot/go_modules/devel…
andyone Mar 16, 2023
9a60c80
Bump github.com/essentialkaos/ek/v12 from 12.63.0 to 12.64.0
dependabot[bot] Apr 3, 2023
7fcf624
Merge pull request #63 from essentialkaos/dependabot/go_modules/devel…
andyone Apr 3, 2023
1d55624
Improve README
andyone Apr 18, 2023
41cbae8
Fix typos
andyone Apr 18, 2023
57e1664
Improve CI workflow
andyone Apr 18, 2023
0dedc49
Bump github.com/essentialkaos/ek/v12 from 12.64.0 to 12.64.1
dependabot[bot] Apr 19, 2023
a140644
Merge pull request #64 from essentialkaos/dependabot/go_modules/devel…
andyone Apr 19, 2023
1ed3a46
Bump github.com/essentialkaos/ek/v12 from 12.64.1 to 12.65.0
dependabot[bot] Apr 28, 2023
04df833
Merge pull request #65 from essentialkaos/dependabot/go_modules/devel…
andyone Apr 28, 2023
1fc6c36
Bump github.com/essentialkaos/ek/v12 from 12.65.0 to 12.66.0
dependabot[bot] May 4, 2023
cdd5926
Merge pull request #66 from essentialkaos/dependabot/go_modules/devel…
andyone May 4, 2023
6914c29
Bump github.com/essentialkaos/ek/v12 from 12.66.0 to 12.67.0
dependabot[bot] May 8, 2023
32e4b7a
Merge pull request #67 from essentialkaos/dependabot/go_modules/devel…
andyone May 9, 2023
aa87da5
Bump github.com/essentialkaos/ek/v12 from 12.67.0 to 12.67.1
dependabot[bot] May 15, 2023
c9a47f8
Merge pull request #68 from essentialkaos/dependabot/go_modules/devel…
andyone May 15, 2023
cacc07a
Bump github.com/essentialkaos/ek/v12 from 12.67.1 to 12.68.0
dependabot[bot] Jun 29, 2023
a974960
Merge pull request #69 from essentialkaos/dependabot/go_modules/devel…
andyone Jun 29, 2023
76259e5
Bump github.com/essentialkaos/ek/v12 from 12.68.0 to 12.69.0
dependabot[bot] Jul 14, 2023
f61f9be
Merge pull request #70 from essentialkaos/dependabot/go_modules/devel…
andyone Jul 14, 2023
9d0d14e
Improve CI workflow
andyone Jul 14, 2023
cfdbe7c
Bump github.com/essentialkaos/ek/v12 from 12.69.0 to 12.70.0
dependabot[bot] Jul 17, 2023
fd7999b
Merge pull request #71 from essentialkaos/dependabot/go_modules/devel…
andyone Jul 17, 2023
80dabab
Bump github.com/essentialkaos/ek/v12 from 12.70.0 to 12.72.0
dependabot[bot] Jul 25, 2023
11a9f36
Merge pull request #73 from essentialkaos/dependabot/go_modules/devel…
andyone Jul 25, 2023
b56db8d
Bump github.com/essentialkaos/ek/v12 from 12.72.0 to 12.73.1
dependabot[bot] Jul 27, 2023
fb05e20
Merge pull request #74 from essentialkaos/dependabot/go_modules/devel…
andyone Jul 27, 2023
5ec45d2
Bump github.com/essentialkaos/ek/v12 from 12.73.1 to 12.73.2
dependabot[bot] Aug 1, 2023
c792505
Merge pull request #75 from essentialkaos/dependabot/go_modules/devel…
andyone Aug 1, 2023
10ee00f
Bump github.com/essentialkaos/ek/v12 from 12.73.2 to 12.75.1
dependabot[bot] Aug 4, 2023
48c2627
Merge pull request #77 from essentialkaos/dependabot/go_modules/devel…
andyone Aug 4, 2023
4e8df4f
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 5, 2023
67107fa
Merge pull request #78 from essentialkaos/dependabot/github_actions/d…
andyone Sep 5, 2023
862a6ff
Bump github.com/essentialkaos/ek/v12 from 12.75.1 to 12.76.1
dependabot[bot] Sep 15, 2023
029cdf6
Merge pull request #79 from essentialkaos/dependabot/go_modules/devel…
andyone Sep 18, 2023
7bb6b1f
Bump github.com/essentialkaos/ek/v12 from 12.76.1 to 12.77.1
dependabot[bot] Sep 25, 2023
9e9c816
Merge pull request #80 from essentialkaos/dependabot/go_modules/devel…
andyone Sep 25, 2023
ab7dc1c
Bump github.com/essentialkaos/ek/v12 from 12.77.1 to 12.78.0
dependabot[bot] Sep 29, 2023
0fad16a
Merge pull request #81 from essentialkaos/dependabot/go_modules/devel…
andyone Sep 29, 2023
8773b67
Bump github.com/essentialkaos/ek/v12 from 12.78.0 to 12.79.0
dependabot[bot] Oct 3, 2023
7734e80
Merge pull request #82 from essentialkaos/dependabot/go_modules/devel…
andyone Oct 3, 2023
4537406
Bump github.com/essentialkaos/ek/v12 from 12.79.0 to 12.80.0
dependabot[bot] Oct 13, 2023
fbc5a54
Merge pull request #83 from essentialkaos/dependabot/go_modules/devel…
andyone Oct 13, 2023
12ccb01
Bump github.com/essentialkaos/ek/v12 from 12.80.0 to 12.82.0
dependabot[bot] Oct 17, 2023
fc5a0ff
Merge pull request #84 from essentialkaos/dependabot/go_modules/devel…
andyone Oct 17, 2023
3c00bd8
Bump github.com/essentialkaos/ek/v12 from 12.82.0 to 12.83.1
dependabot[bot] Oct 24, 2023
f3189d3
Merge pull request #86 from essentialkaos/dependabot/go_modules/devel…
andyone Oct 25, 2023
3f51c1c
Bump github.com/essentialkaos/ek/v12 from 12.83.1 to 12.83.2
dependabot[bot] Nov 2, 2023
51c24d2
Merge pull request #87 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 2, 2023
f055cf5
Bump github.com/essentialkaos/ek/v12 from 12.83.2 to 12.84.0
dependabot[bot] Nov 14, 2023
56162ec
Merge pull request #88 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 14, 2023
fd9b37d
Bump github.com/essentialkaos/ek/v12 from 12.84.0 to 12.85.0
dependabot[bot] Nov 15, 2023
7dd46b7
Merge pull request #89 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 15, 2023
dab1ca7
Bump github.com/essentialkaos/ek/v12 from 12.85.0 to 12.86.0
dependabot[bot] Nov 17, 2023
b2c9107
Merge pull request #90 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 17, 2023
b31f644
Bump github.com/essentialkaos/ek/v12 from 12.86.0 to 12.88.1
dependabot[bot] Nov 22, 2023
f0c00c9
Merge pull request #92 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 22, 2023
10e2be8
Bump github.com/essentialkaos/ek/v12 from 12.88.1 to 12.90.0
dependabot[bot] Nov 27, 2023
31bd4f9
Merge pull request #93 from essentialkaos/dependabot/go_modules/devel…
andyone Nov 29, 2023
857682b
Bump github.com/essentialkaos/ek/v12 from 12.90.0 to 12.90.1
dependabot[bot] Dec 4, 2023
2cd04ae
Merge pull request #94 from essentialkaos/dependabot/go_modules/devel…
andyone Dec 4, 2023
584de25
Bump actions/setup-go from 4 to 5
dependabot[bot] Dec 7, 2023
ab3abae
Merge pull request #95 from essentialkaos/dependabot/github_actions/d…
andyone Dec 8, 2023
7fced17
Bump github.com/essentialkaos/ek/v12 from 12.90.1 to 12.91.0
dependabot[bot] Dec 12, 2023
becc48f
Merge pull request #96 from essentialkaos/dependabot/go_modules/devel…
andyone Dec 12, 2023
772b0bb
Bump github.com/essentialkaos/ek/v12 from 12.91.0 to 12.92.0
dependabot[bot] Dec 14, 2023
3ecf6ba
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 14, 2023
50fbff0
Merge pull request #98 from essentialkaos/dependabot/github_actions/d…
andyone Dec 14, 2023
e1ff687
Merge pull request #97 from essentialkaos/dependabot/go_modules/devel…
andyone Dec 14, 2023
072e9c3
Bump github.com/essentialkaos/ek/v12 from 12.92.0 to 12.93.0
dependabot[bot] Jan 11, 2024
112da9c
Merge pull request #99 from essentialkaos/dependabot/go_modules/devel…
andyone Jan 11, 2024
97b38b5
Bump github.com/essentialkaos/ek/v12 from 12.93.0 to 12.94.0
dependabot[bot] Jan 17, 2024
436fd9a
Merge pull request #100 from essentialkaos/dependabot/go_modules/deve…
andyone Jan 17, 2024
ca27df8
Bump github.com/essentialkaos/ek/v12 from 12.94.0 to 12.95.0
dependabot[bot] Jan 19, 2024
f71cdaf
Merge pull request #101 from essentialkaos/dependabot/go_modules/deve…
andyone Jan 19, 2024
7c4ecbf
Bump github.com/essentialkaos/ek/v12 from 12.95.0 to 12.96.1
dependabot[bot] Jan 22, 2024
3c3b27c
Merge pull request #102 from essentialkaos/dependabot/go_modules/deve…
andyone Jan 22, 2024
12e3b35
Bump github.com/essentialkaos/ek/v12 from 12.96.1 to 12.98.0
dependabot[bot] Jan 24, 2024
e581662
Merge pull request #103 from essentialkaos/dependabot/go_modules/deve…
andyone Jan 24, 2024
7599f35
Bump github.com/essentialkaos/ek/v12 from 12.98.0 to 12.99.0
dependabot[bot] Feb 6, 2024
efe51eb
Merge pull request #104 from essentialkaos/dependabot/go_modules/deve…
andyone Feb 7, 2024
113dcce
Bump github.com/essentialkaos/ek/v12 from 12.99.0 to 12.100.0
dependabot[bot] Feb 13, 2024
6be3ab0
Merge pull request #105 from essentialkaos/dependabot/go_modules/deve…
andyone Feb 13, 2024
2dac08b
Bump github.com/essentialkaos/ek/v12 from 12.100.0 to 12.101.0
dependabot[bot] Feb 28, 2024
9dd2aab
Merge pull request #106 from essentialkaos/dependabot/go_modules/deve…
andyone Feb 28, 2024
dd352a9
Bump github.com/essentialkaos/ek/v12 from 12.101.0 to 12.102.0
dependabot[bot] Mar 4, 2024
ca2e976
Merge pull request #107 from essentialkaos/dependabot/go_modules/deve…
andyone Mar 4, 2024
0169ae2
Bump github.com/essentialkaos/ek/v12 from 12.102.0 to 12.104.0
dependabot[bot] Mar 8, 2024
405b02d
Merge pull request #108 from essentialkaos/dependabot/go_modules/deve…
andyone Mar 9, 2024
ea3dfff
Bump github.com/essentialkaos/ek/v12 from 12.104.0 to 12.107.0
dependabot[bot] Mar 18, 2024
6069e1d
Merge pull request #109 from essentialkaos/dependabot/go_modules/deve…
andyone Mar 18, 2024
dab9187
Improvements
andyone Mar 18, 2024
9aa4bca
Update copyright header
andyone Mar 18, 2024
d3fe915
Improve CI workflow
andyone Mar 18, 2024
246bb97
Fix typo
andyone Mar 18, 2024
fc8d81e
Improve README
andyone Mar 19, 2024
3578d40
Improve version output
andyone Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches: [master, develop]
pull_request:
branches: [master]
workflow_dispatch:
inputs:
force_run:
description: 'Force workflow run'
required: true
type: choice
options: [yes, no]

permissions:
actions: read
Expand All @@ -15,39 +22,40 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SRC_DIR: src/github.com/${{ github.repository }}

jobs:
Go:
name: Go
runs-on: ubuntu-latest

strategy:
matrix:
go: [ '1.19.x', '1.20.x' ]
go: [ '1.21.x', '1.22.x' ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Checkout
uses: actions/checkout@v3
with:
path: ${{env.SRC_DIR}}

- name: Download dependencies
working-directory: ${{env.SRC_DIR}}
run: make deps

- name: Build binary
working-directory: ${{env.SRC_DIR}}
run: make all

- name: Do tests
working-directory: ${{env.SRC_DIR}}
run: |
./knfgen testdata/test1.source | sha1sum | grep -q 'dbfffea813d04de4d838f1877b54fc53cee73616'
./knfgen testdata/test2.source | sha1sum | grep -q 'dbfffea813d04de4d838f1877b54fc53cee73616'
Typos:
name: Typos
runs-on: ubuntu-latest

needs: Go

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check spelling
continue-on-error: true
uses: crate-ci/typos@master
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: go

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[files]
extend-exclude = ["go.sum"]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#### From source

To build the `knfgen` from scratch, make sure you have a working Go 1.19+ workspace ([instructions](https://golang.org/doc/install)), then:
To build the `knfgen` from scratch, make sure you have a working Go 1.21+ workspace ([instructions](https://go.dev/doc/install)), then:

```
go install github.com/essentialkaos/knfgen
go install github.com/essentialkaos/knfgen@latest
```

#### Prebuilt binaries
Expand All @@ -41,7 +41,8 @@ Usage: knfgen {options} file

Options

--separators, -s Add new lines between sections
--separators, -S Add new lines between sections
--united, -U Generate code for united configuration
--no-color, -nc Disable colors in output
--help, -h Show this help message
--version, -v Show version
Expand Down
Loading