Commit graph

41 commits

Author SHA1 Message Date
a6c445b86f
Add support for storage command and crawler output
Partially addresses issue #3 by adding a simple `magellan list devices` command to list storage devices. To close the issue, this PR still requires including storage device information in the `crawler`'s output.

Reviewed-on: towk/magellan-ng#5
2025-06-29 16:36:44 -06:00
1405b42f97
updated all references 2025-06-28 08:38:08 -06:00
David Allen
04e1fb26c9
Split the collect Command For Customization (#93)
* feat: initial implementation of command split

* feat: update collect and new send cmd

* chore: cleanup unused code

* chore: refactored getting username

* chore: more refactoring and cleanup

* feat: update send cmd implementation

* chore: changed/updated example config

* chore: made cmd more consistent and added formatting

* refactor: removed --host flag from scan

* chore: cleaned up and fixed issue with client

* chore: cleaned up CLI flags in collect cmd

* feat: updated crawl to include managers and output YAML optionally

* refactor: updated and improved send implementation

* refactor: minor improvements

* refactor: added util func to check for empty slices

* fix: issue with reading from stdin

* refactor: added scheme trimming function for URIs

* refactor: changed host arg back to positional

* refactor: removed unused vars and added --output-dir flag

* fix: make -f for secrets persistent

* refactor: removed --host flag and request in collect

* refactor: changed --output flag to --output-file

* fix: updated flags for collect

* fix: typo in crawler error

* fix: dir being created when outputDir not set

* fix: reading stdin and data args

* fix: made output using -v and -o consistent

* readme: added info about command split

* updated changelog adding missing version entries

* chore: updated example to use host as positional arg

* fix: issue with reading --data arg

* fix: remove unused import from collect pkg

Signed-off-by: Devon Bautista <devonb@lanl.gov>

---------

Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
Signed-off-by: Devon Bautista <devonb@lanl.gov>
Co-authored-by: Devon Bautista <devonb@lanl.gov>
2025-05-29 15:15:46 -04:00
c950532e88
refactor: improvements to CLI and update pkg 2025-03-28 13:12:38 -06:00
10b3f55b53
refactor: use vars for cred flags 2025-03-24 14:29:47 -06:00
5b79031afa
refactor: updated secrets cmd implementation 2025-03-17 18:34:08 -06:00
f18d279468
refactor: updated description/example and added 'secrets-file' flag to cmd 2025-03-17 10:37:04 -06:00
26522ebd12
version: more small tweaks 2024-10-16 13:32:16 -06:00
David Allen
7285492815
Fixed root persistent flags not binding correctly 2024-08-13 14:44:11 -06:00
David Allen
81ec43a923
Minor changes to fix lint errors 2024-08-13 10:41:06 -06:00
f7159c9b66
Fixed issue with collect requests and other minor changes 2024-08-11 14:25:21 -06:00
David Allen
8a2541717d
Added flag to show cache info with list command and other minor changes 2024-08-09 07:42:28 -06:00
David Allen
2c841906b2
Updated 'cmd' package 2024-08-07 10:58:03 -06:00
David Allen
1ea779e802
Changed short help message for root command 2024-07-30 14:23:53 -06:00
David Allen
b27e6b6a73
Renamed vars and switched to use zerolog 2024-07-30 14:02:12 -06:00
David Allen
d73575ab05
Fixed imports and removed unused query params 2024-07-24 10:24:12 -06:00
David Allen
f7b08da064
Added more API documentation 2024-07-23 16:18:21 -06:00
David Allen
1ab5c8a7df
Added initial round of comments for API documentation 2024-07-18 18:18:03 -06:00
David Allen
66bf6e0557
Fixed viper defaults for certs 2024-05-16 10:36:53 -06:00
David J. Allen
f4540ea4ce
Changed db.path flag to cache 2024-05-10 14:54:34 -06:00
David J. Allen
b3ba75ea9a
Added format flag to convery output to JSON and slighly changed scanning logic 2024-05-10 13:41:08 -06:00
David J. Allen
9663b677ba
Removed and updated flags 2024-05-10 10:09:37 -06:00
David J. Allen
b6d429f072
Changed the default storage location for scanning cache 2024-05-09 14:53:44 -06:00
David J. Allen
0403b2bcbc
Changed the wording of error messages slightly 2024-05-08 13:39:51 -06:00
David J. Allen
60770dadc0
Removed GET request in collect and minor changes 2024-05-08 12:48:02 -06:00
David J. Allen
b873613939
Minor changes and fixes 2024-05-07 16:51:07 -06:00
David J. Allen
2edcb2199e
Updated imports and generate automatic environment with viper 2024-05-07 15:50:47 -06:00
David J. Allen
2b421e8af5
Merge branch 'main' into config-file 2024-05-07 14:57:34 -06:00
David J. Allen
b5c0d9ce2a
Changed cert flags and added cert for gofish 2024-05-06 14:01:29 -06:00
David J. Allen
09c5af44b9
Added checks for access token when running command 2024-03-15 17:43:25 -06:00
David J. Allen
7760857ae5
Added login flow to get access token 2024-03-15 17:22:00 -06:00
David J. Allen
2baae37f5f Initial implementation of config file 2023-10-19 17:08:36 -06:00
David J. Allen
d8bd169cb7 Added protocol flag 2023-10-05 12:55:58 -06:00
David J. Allen
b504550d98 Refactored, renamed, and reorganized code 2023-09-19 13:55:46 -06:00
b3368e5264 Fixed formatting via gofmt
Signed-off-by: David J. Allen <davidallendj@gmail.com>
2023-09-15 08:32:41 -06:00
8faa570b0a Minor tweaks, changes, and fixes
Signed-off-by: David J. Allen <davidallendj@gmail.com>
2023-09-14 13:41:12 -06:00
David J. Allen
c5a6d2a2be Add goroutine to info collect
Signed-off-by: David J. Allen <allend@lanl.gov>
2023-09-13 11:21:49 -06:00
David J. Allen
2edb9fdbb0 Refactored flags and added xnames to add endpoint to hms-smd 2023-09-05 14:26:53 -06:00
David J. Allen
de07b119b5 Test ipmi driver with bmclib functions 2023-08-31 08:48:33 -06:00
David J. Allen
118c12fa14 Minor changes and fixes 2023-08-30 14:43:13 -06:00
David J. Allen
c202469c50 Reorganized adding cobra commands 2023-08-29 14:36:57 -06:00