Zach Wasserman
4cfcb1b084
Upgrade fleetctl github.com/urfave/cli to v2 ( #471 )
...
This is intended to upgrade to the new API without changing fleetctl
functionality.
2021-03-12 16:42:38 -08:00
Zach Wasserman
22d9205d35
Add debug flag to fleetctl ( #266 )
...
This flag enables logging of HTTP requests and responses to stderr.
Closes #187
2021-02-02 18:55:16 -08:00
Zachary Wasserman
f06c3cff93
Add pretty-printing option for query results ( #4 )
...
Use --pretty to enable this feature.
This will likely break on non-ANSI terminals.
2020-11-04 09:56:57 -08:00
Zachary Wasserman
72b0efca62
Fix handling of --quiet flag in fleetctl query ( #2 )
...
Fixes an issue in which the status was erroneously displayed after results were printed.
2020-11-03 15:50:36 -08:00
Serrvosky
19896d25f7
Adding query-name flag to fleetctl query ( #2185 )
...
Added a feature to select queries by name. If --query-name flag is defined, fleetctl makes a call to get the query already saved in Fleet, and then, if it exists, fill flQuery variable with the selected query statement.
Closes #2175
2020-01-20 22:16:11 -08:00
Zachary Wasserman
71eef8a315
Require non-nil status for exit of fleetctl query ( #2184 )
...
Fixes an issue some users encountered in which the query would exit
before any results were returned (when latency to the Fleet server was
high).
2020-01-16 17:45:26 -08:00
Zachary Wasserman
03c23973ca
Small cleanup in live query code ( #2011 )
...
- Additional comments
- Fix some cases where websocket may not be closed appropriately
2019-03-10 13:51:11 -07:00
Zachary Wasserman
16cf164adb
Add --timeout flag to fleetctl query ( #1989 )
...
This change makes it easier to run `fleetctl query` within scripts, by providing
an option to halt the query after a timeout has passed.
Closes #1987
2019-01-15 11:06:22 -08:00
Thordur Bjornsson
832365c1d4
Fleetctl query improvements ( #1888 )
...
- Exit when all targeted hosts have responded
- Pause the spinner when outputting logs so that output is cleaner
2018-09-07 15:37:10 -07:00
Jeremy Rossi
473dc3e265
Add --quiet and --exit arguments for fleetctl query ( #1887 )
...
--quiet will disable all printing other than errors and results
--exit will quit and exit when 100% online hosts have returned results
2018-08-16 15:31:18 -07:00
Mike Arpaia
4ddb691524
Remove -f from fleetctl query ( #1814 )
...
close #1812
2018-06-04 22:28:49 -06:00
Zachary Wasserman
b80e0a102d
Add fleetctl query command ( #1784 )
...
Allow queries targeted by hostname and label name.
2018-05-17 15:54:34 -07:00