Commit Graph

18 Commits

Author SHA1 Message Date
63ef233357 add consolidated methods, update cli 2026-01-19 11:50:51 -05:00
b4f49be2c6 add toughswitch consolidated type, and use in cmd 2026-01-19 11:45:16 -05:00
4964317b6b update changelog
All checks were successful
Publish / release (push) Successful in 38s
v0.4.0
2026-01-18 17:08:27 -05:00
baf321ece0 update claude and readme 2026-01-18 17:06:55 -05:00
5e8e7cd41d refactor CLI to use shared clients from context
- Add Login() method to toughswitch and edgeos clients
- Use zerolog's built-in context methods for logger storage
- Add context helpers for toughswitch/edgeos clients
- Create prepareClients prerun to initialize clients from config
- Consolidate device fetching into shared client.go helper

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 17:03:35 -05:00
868ab64bc9 fix config default flag 2026-01-17 17:10:58 -05:00
edc86feccd frame out cli tool 2026-01-17 17:06:32 -05:00
7661bff6f1 update CHANGELOG
All checks were successful
Publish / release (push) Successful in 19s
v0.3.0
2026-01-14 11:15:45 -05:00
b21475b487 move to ubiquiti-clients, add edgeos 2026-01-14 11:11:34 -05:00
195a9f7a9f rename to toughswitch
All checks were successful
Publish / release (push) Successful in 29s
v0.2.1 v0.2.2
2026-01-05 16:25:23 -05:00
ecbf4d447c rename to toughswitch
All checks were successful
Publish / release (push) Successful in 19s
2026-01-05 15:48:43 -05:00
438d422b53 rename to toughswitch 2026-01-05 15:47:43 -05:00
38eb2cc352 Create CHANGELOG.md
All checks were successful
Publish / release (push) Successful in 19s
v0.2.0
2026-01-04 13:57:16 -05:00
1754eb6e84 Add thread-safe Add/Del methods and refactor client locking
- Add Add and Del methods to Client for dynamic host management.
- Add RWMutex to Client to protect the devices map.
- Add Transport to Config to allow mocking HTTP transport in tests.
- Add getDeviceByHost helper to centralize device lookup locking.
- Refactor GetAll* methods to snapshot host keys before iteration to avoid concurrent map read/write panic.
- Add tests for thread safety and Add/Del functionality.
2026-01-04 13:56:19 -05:00
906d005edf improves concurrent GetAll operations 2026-01-04 13:49:28 -05:00
b12e8df35b fix CI
All checks were successful
Publish / release (push) Successful in 43s
v0.1.1
2026-01-04 13:32:09 -05:00
5657aa2308 add CI
All checks were successful
Publish / release (push) Successful in 7s
v0.1.0
2026-01-04 13:30:40 -05:00
e0c0321bc9 Ubiquiti EdgeOS Go Client 2026-01-04 13:26:40 -05:00