Skip to content
Merged

dev #21

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d7ca2b8
Restructure most of the code and tighten the API
maxlandon Jul 12, 2025
653c5d2
Various things:
maxlandon Jul 12, 2025
9a9ca89
Repairing tests in parser package
maxlandon Jul 13, 2025
bf76159
Refactor and refine positional arguments code
maxlandon Jul 13, 2025
345bd8a
Multiple fixes to flag completion following refactoring + update
maxlandon Jul 14, 2025
7dfcadf
Remove useless function in API
maxlandon Jul 14, 2025
7469368
Format
maxlandon Jul 14, 2025
8cf5655
Revert to old type completer detection function
maxlandon Jul 14, 2025
e8a42c5
Fix most tests in the gen package
maxlandon Jul 15, 2025
280c814
Fix tests in gen package
maxlandon Jul 15, 2025
66322e9
Regenerate values
maxlandon Jul 15, 2025
f37cbdc
Fix generated values and some imports
maxlandon Jul 15, 2025
6e8f03f
Fix most tests in parser package.
maxlandon Jul 16, 2025
272aa78
Fix function missing in tests
maxlandon Jul 16, 2025
666f0d9
Code cleanups in gen package
maxlandon Jul 16, 2025
50bc471
Code cleanup with new context for scanning
maxlandon Jul 16, 2025
6de5162
Cleanup gen/completions package
maxlandon Jul 16, 2025
d16a013
Code cleanup in parser package. Still problems to fix
maxlandon Jul 17, 2025
04e3e2d
Code cleanup in other internal packages
maxlandon Jul 17, 2025
5e3049d
Fix validation flags/args
maxlandon Jul 22, 2025
583ae59
Refactor parser code and fix its tests.
maxlandon Jul 23, 2025
2e8ea26
Other fixes
maxlandon Jul 23, 2025
9f50f96
Small refactors
maxlandon Jul 23, 2025
d2532f4
Fix positional tests and related code.
maxlandon Jul 24, 2025
69ba61d
Refactors
maxlandon Jul 25, 2025
7b9ab5d
Implement base Kong tags, negatable flags and custom separators + tests
maxlandon Jul 25, 2025
b09bbc6
Implement XOR flags, passthrough args, but problem with tests.
maxlandon Jul 26, 2025
a62c766
Implement default commands
maxlandon Jul 26, 2025
3136c9c
Implement Kong-style ENV support
maxlandon Jul 26, 2025
99d97b0
Implement variable expansion in tags and with options
maxlandon Jul 26, 2025
6113a29
Kong ignore
maxlandon Jul 26, 2025
564abe7
Add support/compat for other Kong tags
maxlandon Jul 26, 2025
3bdce28
Refactors and comments + implement xorprefix
maxlandon Jul 26, 2025
1600a8e
Refactoring
maxlandon Jul 26, 2025
fa61532
Implement kong-style positional support, and fix all tests
maxlandon Jul 28, 2025
ac7109f
Cleanup and refactor gen/flags package
maxlandon Jul 28, 2025
c3db827
First steps of refactoring/cleanup.
maxlandon Jul 28, 2025
c0f5f19
First steps of a FieldContext implentation
maxlandon Jul 29, 2025
8675065
Add hint completion for positionals + refactors + fixes
maxlandon Jul 29, 2025
e42d48e
Start refactoring completions into main scan code
maxlandon Jul 29, 2025
db13e05
Refactor completions package into main parser code
maxlandon Jul 29, 2025
d609acd
Custom list separators in completions
maxlandon Jul 30, 2025
16bd143
Cleanup errors
maxlandon Jul 30, 2025
9bea543
Better checks for unexported fields
maxlandon Jul 30, 2025
b6a2ee7
Support for individual persistent flags
maxlandon Jul 30, 2025
e0efe66
Add validations for scanned flag types
maxlandon Jul 30, 2025
fa86b17
Cleanup / refactor some tests
maxlandon Jul 30, 2025
133addf
Fmt
maxlandon Jul 30, 2025
3fbe312
Add support for binding/tagging custom completers
maxlandon Jul 30, 2025
abfd853
Fix validation for user-defined types.
maxlandon Jul 30, 2025
ea9f1a1
Add tests that had disappeared
maxlandon Jul 30, 2025
6df9ca6
Update README and remove old Go doc
maxlandon Jul 30, 2025
0875744
Update README
maxlandon Jul 30, 2025
63c2606
Update Go CI actions
maxlandon Jul 30, 2025
5d30808
Try to fix labeler actions
maxlandon Jul 30, 2025
a3ff842
Remove labeler
maxlandon Jul 30, 2025
af2f3dd
Update Analyze CodeQL
maxlandon Jul 30, 2025
53916e3
Force Github actions
maxlandon Jul 30, 2025
b38d589
Fix CodeQL warnings
maxlandon Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 0 additions & 33 deletions .github/labeler.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '27 8 * * 0'
- cron: '15 22 * * 3'

jobs:
analyze:
Expand All @@ -40,11 +40,11 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -71,6 +71,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
14 changes: 7 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go and tools
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.24.2

- run: go install golang.org/x/tools/cmd/goimports@latest

Expand All @@ -36,18 +36,18 @@ jobs:
run: go test -race -coverprofile=coverage.txt

- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go and tools
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.24.2

- run: go install golang.org/x/tools/cmd/goimports@latest

Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/label.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ _testmain.go
*.exe
*.test
*.prof

# Example binaries
example/flags
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Loading
Loading