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
kaidaguerre
efbebd99ee
Decouple spinner display code from database and execution layer. Closes #1290
2022-01-06 11:54:18 +00:00
Binaek Sarkar
990275c0a0
Fix issue where service is not shutdown if interrupted while interactive prompt is initialising. Closes #1004
2022-01-05 15:45:55 +00:00
kaidaguerre
e0ff19a280
Update package naming to be consistent and follow Go standards. Closes #1282
...
General code spring cleaning:
* move file paths from `consts` package to `filepaths`
* move InitData and ExportData to query and control packages
2022-01-04 12:28:36 +00:00
Binaek Sarkar
0732f8ee4f
Fix issue where service is not shutdown when check is cancelled. Closes #1250
2021-12-21 12:50:20 +00:00
Binaek Sarkar
dad700b26c
Add context awareness in services and commands. Closes #1206 . Closes #1214 . Closes #1215
2021-12-09 14:02:19 +00:00
kaidaguerre
1fdfc02c34
Startup optimizations. Closes #1186 . Closes #1183 . Closes #1182
...
- Update connection management to use file modified time instead of filehash to detect connection changes
- Avoid retrieving schema from database for check and non-interactive query execution
- When retrieving plugin schema, identify the minimum set of schemas we need to fetch - to allow for multiple connections with the same schema
- Update plugin manager to instantiate plugins in parallel
2021-12-07 15:34:14 +00:00
kaidaguerre
ad3e6447c0
Add support for connecting to a remote database, andf for connecting to Stweampipe #1175
2021-11-24 16:44:26 +00:00
kaidaguerre
3bb4bf97d3
Create prepared statements one by one to allow accurate error reporting and reduce memory burden. Fix workspace file watching. Fix async error display. Close ##1148. Close #1152 . Close #1085
2021-11-21 10:53:33 +00:00
Binaek Sarkar
a09ed88304
Optimize parallel control execution. Provider more responsive feedback for control runs. Update postgres log config to optimise performance. Closes #1101
2021-11-16 21:57:38 +00:00
kaidaguerre
7e7e0dd130
Add support for parallel control execution. Only spawn a single plugin per steampipe connection - defer plugin spawning to a PluginManager service. CLoses#1073, Closes #1001
2021-11-04 11:29:28 +00:00
kaidaguerre
e15b78308f
Update and tidy the help text. Closes #1039
2021-10-22 13:27:37 +01:00
kaidaguerre
695b2704a4
Rename backend database environment variables
2021-10-19 18:27:51 +01:00
kaidaguerre
041e1b0075
Support installation and resolution of mod dependencies. Add steampipe_reference introspection table. Closes #978 . Closes #972
2021-10-11 14:46:59 +01:00
kaidaguerre
38e3d5908f
Tidy the creation of session scoped data. #955
2021-09-28 12:27:03 +01:00