Commit Graph

17 Commits

Author SHA1 Message Date
4afba5677a Add caching function to calculate rune-aware string lengths since this single function takes ~50% of CPU time in the TUI (#295)
* Add opt-in support for CPU profiling the TUI

* Add caching function to calculate rune-aware string lengths since this single function takes ~50% of CPU time in the TUI
2025-02-03 21:19:01 -08:00
0023c72636 Quote initial commands to make it possible to easily use hishtory to find matching entries for already typed commands that contain flags (#251)
* Quote initial commands to make it possible to easily use hishtory to find matching entries for already typed commands that contain flags

* Add test for quoting dashes

* Fix test failures

* More test fixes

* Update goldens

* Update goldens

* Update goldens

* Fix race condition

* Fix test harness bug by swapping to splitn

* Update goldens

* Update golden

* Update test
2024-10-20 12:22:29 -07:00
3875bddddc Add ability to configure log-level and update many log lines to use the correct log level, fixes #211 #219 2024-08-25 11:50:46 -07:00
8da11eb3fa run "make fmt" (#233) 2024-08-11 12:19:41 -07:00
0787840a10 Wire through the shell name into AI suggestions so that we can get more precise AI suggestions for the current shell 2024-02-19 12:12:04 -08:00
6575c8ae42 Fix handling of new lines in commands for #163 (#170)
* Fix handling of new lines in commands for #163

* Move code for table from lib.go to query.go

* Update goldens
2024-02-06 20:04:21 -08:00
77313dfb48 Add better color support detection, for #134 2023-12-31 13:00:56 -08:00
6bb12241c9 Promote the background updates of the DB from BetaMode to prod 2023-10-21 09:47:20 -07:00
4bcc5fb335 Periodically call query endpoint and retrieve data to ensure that the local DB is always reasonably up to date 2023-10-15 12:29:50 -07:00
fca2b1441f Always include user and device ID in API request headers, so that they're available in all server-side handlers 2023-10-14 10:52:51 -07:00
e8ceb02138 Move tui.go out of lib and into a separate package 2023-09-13 22:47:48 -07:00
a12b0e5f6f no context pointers 2023-09-05 15:45:17 -04:00
ba769ec700 Fix mis-alignment in example queries 2022-11-16 08:09:04 -08:00
be2cde72c2 Appears to be a functional migration to cobra 2022-11-16 08:03:23 -08:00
0667494239 Disable flag parsing for the querying functions so they can use exclusions + refactor redact to remove the --force flag 2022-11-16 08:03:23 -08:00
27bbe97cb2 Better organize the cobra generated help page 2022-11-16 08:03:23 -08:00
ecdd22dcdd Everything migrated to cobra, but with some very significant TODOs 2022-11-16 08:03:23 -08:00