Skip to content
Merged
Show file tree
Hide file tree
Changes from 96 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
ae52f0c
Migrate context command from cli
izvyk Oct 20, 2025
dc242cd
go mod tidy
izvyk Oct 20, 2025
23bd62a
Add changes from metal-stack/cli@0315f8b: migrate to simple and remov…
izvyk Oct 20, 2025
6e42a16
Revert changes on this branch
izvyk Oct 21, 2025
a9f280d
Extract a shared context command
izvyk Oct 21, 2025
0704144
Add default templates for context subcommands
izvyk Oct 22, 2025
e7d4324
Add MutateFn for context commands
izvyk Oct 22, 2025
4b4b26c
Add first parts of context cmd
izvyk Oct 23, 2025
c85af7d
Add missing functionality to context cmd
izvyk Oct 27, 2025
c61aa89
Finish the initial context cmd implementation
izvyk Oct 28, 2025
4c58f02
Put proper error to an unimplemented method we don't need now
izvyk Oct 28, 2025
3523612
Fix: reset current/previous context if it's deleted
izvyk Oct 28, 2025
d9155e3
Add sensible aferoFS default
izvyk Oct 28, 2025
6d904cc
Remove unnecessary constants
izvyk Oct 28, 2025
e3e2714
Resolve TODOs and remove unused code
izvyk Oct 28, 2025
e40463d
Add different printing formats
izvyk Oct 28, 2025
16d42dc
Refactor: Printout and variable names adjustments, overall cleanup
izvyk Oct 28, 2025
e0c264b
Add number of args check and add a fallback for describeCmd with no args
izvyk Oct 28, 2025
d06659b
Fix: fail when context rootCmd has too many args
izvyk Oct 28, 2025
6729115
Adjust config path resolution
izvyk Oct 29, 2025
89ea0c6
Add context show-current cmd
izvyk Oct 29, 2025
b5d6689
Refactor: help consistency improvements and cleanup
izvyk Oct 29, 2025
2b63b24
Merge branch 'master' into 191-generic-cli-context-handler
izvyk Oct 29, 2025
e0bfe84
Restore go.mod and go.sum from master to avoid conflicts
izvyk Oct 29, 2025
19ef15f
Remove accidental TODO
izvyk Oct 29, 2025
0f8485b
Move context cmd to genericcli package
izvyk Oct 29, 2025
73caa25
Fix tests and fail when there are no contexts
izvyk Oct 29, 2025
96b15bf
Expose some methods for CLIs
izvyk Oct 29, 2025
5929687
Minor fixes and refactoring
izvyk Oct 31, 2025
8ff48b0
Refactor: unexport some components
izvyk Oct 31, 2025
e4941aa
Add Context helper getters
izvyk Oct 31, 2025
2e8b88a
Add IsCurrent field to use cli's printer
izvyk Nov 3, 2025
35dab7f
Unexport ContextListCompletion
izvyk Nov 3, 2025
5760937
Fix GetAPIURL method name
izvyk Nov 3, 2025
9967302
Rename table method for consistency
izvyk Nov 3, 2025
1b12616
Move printer to context_test
izvyk Nov 3, 2025
b14a66e
Extend the sorter
izvyk Nov 3, 2025
90dce5a
Bind sort column names to flag names
izvyk Nov 3, 2025
7dc8c77
Fix the build
izvyk Nov 3, 2025
51f465e
Optimise the Delete method
izvyk Nov 4, 2025
9745b4c
Optimise the Switch method and move methods from ContextConfig to cli…
izvyk Nov 4, 2025
ca5e724
Fix writeContexts method
izvyk Nov 4, 2025
9275bbf
Fix Create method
izvyk Nov 4, 2025
f33039d
Various fixes
izvyk Nov 4, 2025
9c141f4
Adjust Update method
izvyk Nov 4, 2025
32471a4
Fix Update logic: eliminate redundant file reads
izvyk Nov 4, 2025
fb59818
Various fixes
izvyk Nov 4, 2025
57e19fb
Fix setProject method
izvyk Nov 4, 2025
26ebbf3
Remove unreachable code
izvyk Nov 4, 2025
a690e84
Fix update --activate flag
izvyk Nov 4, 2025
ec56c4e
Move 'no contexts' error logic to printer func
izvyk Nov 4, 2025
42a1c18
Use CreateRequestFromCLI properly
izvyk Nov 4, 2025
ef14ddd
Remove redundant code
izvyk Nov 4, 2025
198abc1
Remove unnecessary syncCurrent()
izvyk Nov 4, 2025
ecc6fe8
Simplify Update logic and make it cleaner
izvyk Nov 4, 2025
8bcb360
Refactor: put all the messages and dynamic errors to the constants block
izvyk Nov 4, 2025
958d107
Fix the delete() method
izvyk Nov 4, 2025
402536a
Implement Convert() for completeness
izvyk Nov 4, 2025
0e5ce1a
Refactor: create predefined errors to ensure message consistency
izvyk Nov 4, 2025
0433cb2
Refactor: remove magic string when calling 'list' from root cmd's RunE
izvyk Nov 4, 2025
4a898b4
Fix error handling
izvyk Nov 4, 2025
54f9b6d
Resolve a few TODOs
izvyk Nov 4, 2025
afdc2be
Export cliWrapper as ContextManager to make it possible to call CRUD …
izvyk Nov 5, 2025
5d109ed
Add NewContextManager method
izvyk Nov 5, 2025
34a4295
Fix bugs
izvyk Nov 6, 2025
52dbce9
Export ContextListCompletion to use it in Login commands in CLIs
izvyk Nov 7, 2025
a4ed8ba
Fix mistakes
izvyk Nov 10, 2025
a1040d6
Improve context validation
izvyk Nov 10, 2025
483bfad
Simplify the code structure slightly
izvyk Nov 10, 2025
17a5a80
Add ContextManager (business logic) tests
izvyk Nov 11, 2025
5d2a20c
Tests cleanup
izvyk Nov 11, 2025
f2780fd
Add ContextManager.List() tests
izvyk Nov 11, 2025
f4f503e
Fix a minor issue to ensure ContextManager.Create() returns an object…
izvyk Nov 11, 2025
935c4c4
Add ContextManager.GetCurrentContext() tests
izvyk Nov 11, 2025
8ce32cf
Add more tests
izvyk Nov 11, 2025
f86f00f
Add more fields to ContextManager.Update() test
izvyk Nov 12, 2025
d9f2625
Add more tests: ContextManager.getContexts() and ContextManager.write…
izvyk Nov 12, 2025
d2b8a69
Add helper structures and change names so they are more explicit and …
izvyk Nov 13, 2025
c1513a2
Add helper to CRUD tests to reduce boilerplate
izvyk Nov 13, 2025
c4b0bca
Cleanup
izvyk Nov 13, 2025
6c394a1
Add console tests
izvyk Nov 13, 2025
e5a43ce
Cleanup
izvyk Nov 13, 2025
35256b2
Add setProject() tests
izvyk Nov 13, 2025
c50e797
Try to fix build
izvyk Nov 13, 2025
3a6f53b
Renaming
izvyk Nov 13, 2025
f12f056
Use 'sigs.k8s.io/yaml' to simplify tags
izvyk Nov 13, 2025
6bcd77a
Inline error strings
izvyk Nov 17, 2025
5eb19cf
Refactor: reduce nesting
izvyk Nov 17, 2025
f5e41a5
Move exported methods up
izvyk Nov 17, 2025
d2dd320
Fix tests
izvyk Nov 17, 2025
bd12a76
Refactor: rename ContextUpdateRequest.Activate to IsCurrent for the s…
izvyk Nov 17, 2025
b7d5da6
Refactor: move helper methods to the bottom end explain the decisions…
izvyk Nov 17, 2025
f62e029
Refactor: make greenCheckMark a var instead of a function
izvyk Nov 17, 2025
6729093
Refactor: rename ContextManagerConfig to ContextCmdConfig
izvyk Nov 17, 2025
71b2815
Remove TODO
izvyk Nov 17, 2025
05cb9c5
Inline error messages
izvyk Nov 17, 2025
f60ecdb
Inline error messages
izvyk Nov 17, 2025
ed20924
Remove unused function
izvyk Nov 17, 2025
6d410b7
Refactor: remove redundant sort keys
izvyk Nov 18, 2025
c71b3a8
Cleanup
izvyk Nov 18, 2025
8e5a1e6
Refactor: rename getContexts() to getContextConfig()
izvyk Nov 18, 2025
311c247
Refactor naming
izvyk Nov 18, 2025
3c572ee
Renaming
izvyk Nov 18, 2025
9dd982c
Cleanup
izvyk Nov 18, 2025
80092de
Replace switchContext() logic with a call to Update()
izvyk Nov 18, 2025
e50053a
Add missing changes is context_test.go
izvyk Nov 18, 2025
6ce95bf
Refactor: check mark constant
izvyk Nov 25, 2025
eb84813
Refactor: renamings for better clarity
izvyk Nov 25, 2025
eb539ab
Show-current now uses the unified public interface instead of a custo…
izvyk Dec 3, 2025
a3fe0a2
Add tests for an inconsistent config case (current is set to non-exis…
izvyk Dec 3, 2025
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
1 change: 0 additions & 1 deletion auditing/timescaledb_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build integration
// +build integration

package auditing_test

Expand Down
Loading
Loading