Aaronstotle
17a00353ae
Add check to the mod init function so users are aware if it's run in the home directory or if there are a large number of non-mod files in the path. Closes #2562
2023-04-06 09:10:41 +01:00
Binaek Sarkar
17306488fc
Fixes issue where fdw was not updated for 'service restart' command. Closes #3172
2023-03-10 12:33:59 +00:00
kaidaguerre
7c2ae6da93
when executing a query as a dashboard, name the dashboard custom.dashboard.sql_<query_hash>. Closes #3150
2023-02-28 18:19:13 +00:00
kaidaguerre
b67d39ecde
Fix duplicated text input on interactive prompt during initialisation. Closes #3075
2023-02-16 12:35:43 +00:00
kai
d266917597
Merge branch 'v0.18.x' into main
...
# Conflicts:
# CHANGELOG.md
# pkg/version/version.go
2023-02-15 14:52:34 +00:00
Binaek Sarkar
d75ab0372e
Fixes issue where snapshot mode in query leads to duplicate rows in console/file output
2023-02-15 19:08:19 +05:30
Mike Burgess
9669829827
Merge branch 'v0.18.x'
2023-02-03 13:04:02 +00:00
Puskar Basu
6ee0183a63
Fix query batch mode returning zero exit code when rows return errors. Closes #3044
2023-02-03 11:36:21 +00:00
Puskar Basu
e5564457af
Fix issue where snapshot creation was failing for command line queries in batch mode. Closes #2943
2023-02-03 11:05:21 +00:00
Puskar Basu
e81b4a6888
Show the exported file location when --progress flag is enabled. Closes #2860
2023-01-27 16:27:39 +00:00
Puskar Basu
e4c50a9477
Ensure correct exit code is returned when a mod plugin requirements are not met. Closes #2986
2023-01-18 14:43:44 +00:00
kaidaguerre
6ee391faba
Workspace file watching events sometime cause dashboard to stall and stop responding to events. Cancelling dashboards (e.g. by pressing 'back' on the browser) sometimes leave the server in a state where it will not respond to socket events. #3007.#. #3008
2023-01-17 11:52:53 +00:00
Puskar Basu
34ecf67496
Use consistent and defined exit codes. Closes #2935
2023-01-06 14:14:05 +00:00
Binaek Sarkar
056fa56241
Fixes issue where interactive prompt was not showing timing data for 'json', 'csv' and 'line' outputs. Closes #2699
2022-11-29 10:57:37 +00:00
kaidaguerre
fe6365b1ef
Remove usage of prepared statements - instead excute sql directly. Wrap with executions in LeafRuns to support runtime dependency resolution. Closes #2789 . #2772
2022-11-23 14:11:56 +00:00
Binaek Sarkar
b56447cbcc
Consolidates setting of CLI flag shorthand. Closes #2403
2022-11-09 10:31:09 +00:00
kai
b40cc0941f
Using query command --export flag raises an error that it cannot be used in interactive mode, even when not in interactive mode. Closes #2707
2022-11-08 21:42:38 +00:00
kai
dcb693bb74
Show error if export flag set for interactive query. Closes #2696
...
Fail with helpful message if invalid typename passed to check command. Closes #2693
2022-11-08 13:29:30 +00:00
kai
cbd6b18ef6
Steampipe query fails with nil pointer exception if query execution fails and result is being exported as snapshot. Closes #2692
2022-11-07 15:25:59 +00:00
kai
f47d55b2bb
Fix steampipe query --timing not outputting timing information if sharing or exporting a snapshot. Closes #2677
2022-11-07 14:05:39 +00:00
kai
6f7e48607a
Fix config resolution so install-dir and mod-location are correctly resolved when set in workspace profiles/env vars. Closes #2681
...
Improve resource not found errors
Put install dir back into workspace profiles
Update export arg help
2022-11-07 10:37:34 +00:00
kai
7e4ecf3724
Update argument descriptions for --output --export, --snapshot-location
...
Remove 'check' from dashboard arg descriptions
Do not show "Output format defaulted to 'none'" message if sharing a snapshot
remove query timeout from database options
Fix snapshot creation crash when required inputs are not provided
2022-11-07 10:37:34 +00:00
Binaek Sarkar
e5a14bce00
Adds 'list' sub command for 'query', 'check' and 'dashboard'. Closes #2653
2022-11-03 15:58:56 +00:00
kaidaguerre
3d084c5bc8
Add snapshot-title arg. Ensure snapshots and exports are named consistently. Closes #2666
2022-11-03 11:09:07 +00:00
kaidaguerre
c42fbdb8d5
Update formatting for login command. Update missing cloud token error. Closes #2654
2022-11-02 14:04:59 +00:00
kaidaguerre
a5ea31f2d0
Fix columns values being incorrectly ordered when sharing a query snapshot. Closes #2648
2022-11-01 22:13:37 +00:00
kaidaguerre
0452bb0b81
Validate checkout output and export formats before execution. Closes #2619 . Add support for using sps as snapshot output/export format. Closes #2623
2022-10-28 14:57:44 +01:00
kaidaguerre
940bec6b5f
Connect to steampipe cloud using the steampipe cloud sdk. Closes #2610
2022-10-27 17:43:44 +01:00
kaidaguerre
7188101a80
Update --snapshot-tag arg to be string array, not string slice (i.e. values will be passed raw, not parsed as a CSV). Closes #2597
2022-10-26 18:00:58 +01:00
Puskar Basu
81a2cf65af
Load workspace-profile from config directory. Closes #2595
2022-10-26 14:55:48 +01:00
kaidaguerre
42c2323eb2
Add query_timeout to workspace profile. Closes #2593
...
Improve timeout error message.
Remove refreshDbClient call after timeout.
Set default check query timeout to 240sec and query to 0 (no timeout)
2022-10-26 14:53:50 +01:00
François de Metz
b3838186e1
Add a configurable query timeout. Closes #666
2022-10-26 10:09:17 +01:00
Binaek Sarkar
a373b9ca91
Fixes issue where prompt fails to show up when service installation runs in interactive mode. Closes #2529
2022-10-21 12:13:52 +01:00
kaidaguerre
1e3db26e8f
Add support for workspace profiles - parse from config and select using --workspace arg. Closes #2510
...
Add support for implicit workspace. Closes #2514
If snapshot-location is a local file path, copy snapshot instead of uploading. Closes #2550
Do not show snapshot upload status if --progress=false. Closes #2517
Replace --workspace with --snapshot-location. Closes #2512
2022-10-19 13:02:24 +01:00
michizhou
f80f9c1b21
Deprecate workspace-chdir, replace with mod-location. Closes #2511
2022-10-19 11:08:34 +01:00
kai
6315deae3f
Update snapshot-tags dashboard and query arg to support comma separated vals. Closes #2544
2022-10-18 13:53:09 +01:00
kaidaguerre
5abbcdb5dd
Update snapshot-tags arg to support comma separated vals. Closes #2544
2022-10-18 12:01:26 +01:00
kaidaguerre
397c951fe2
Refactor control export to use ExportManager. Closes #2515
2022-10-12 16:25:31 +01:00
kaidaguerre
1dc28f4681
Add --source-snapshot option to dashboard command. Closes #2503 . ( #2491 )
2022-10-11 23:36:27 +01:00
kaidaguerre
dc70d00644
Add dashboard support for explicitly declared nodes, edges and categories. Closes #2488
2022-10-05 17:16:06 +01:00
kaidaguerre
ef845286c1
Add support for sharing snapshots. Add snapshot output and export format for query and check. Add ability to run named dashboards. #2473
2022-10-05 15:30:57 +01:00
kaidaguerre
404dd35e21
Update database code to use pgx interface so we can leverage the connection pool hook functions to pre-warm connections. Closes #2422 ( #2438 )
...
* Provide feedback for failed prepared statements
* Move error functions to error_helpers
* Make maintenance client retriable
2022-10-05 12:38:57 +01:00
kaidaguerre
cb42d5d3eb
Update CLI to upload snapshots to the cloud using --share and --snapshot options. Update Dashboard command to support passing a dashboard name as an argument. Closes #2365 . Closes #2367
2022-09-02 17:05:40 +01:00
kaidaguerre
5193c70395
Restructure steampipe repo to use pkg folder. Closes #2204
2022-06-27 11:36:03 +01:00
kaidaguerre
dc6b636822
Add support for Open Telemetry. Closes #1193
2022-06-16 15:17:52 +01:00
kaidaguerre
b6d84d256a
Add support for setting dependent mod variable values using an spvars or by setting and Args property in the mod Require block. Closes #2076 . Closes #2077
2022-05-17 14:31:40 +01:00
kai
3581d87953
Update command help for --input arg to "Enable interactive prompts". Closes #1920
2022-04-21 17:13:39 +01:00
kaidaguerre
c07fe30294
Add 'input' flag to disable interactive prompting for variables. Closes #1839
2022-04-12 16:08:05 +01:00
kaidaguerre
26f6baa1bd
Expose reporting metadata to the dashboard UI. Closes #1411
2022-03-04 17:15:01 +00:00
kaidaguerre
775a1f44c7
Disable spinner for batch mode queries. Fixes #1340
2022-01-22 11:58:35 +00:00