Commit Graph

42 Commits

Author SHA1 Message Date
713ee96a96 Delete error checking branch that isn't necessary because the filter condition above is much more precise now 2023-09-17 12:06:19 -07:00
4b99e4d0e8 Fix misleading error message that contained the wrong shell name due to a copy/paste mistake 2023-09-14 23:09:15 -07:00
30ba0bd35c Presaving clean up improvements: Skip presaving empty commands and make timestamp format clearer 2023-09-14 21:04:23 -07:00
e8ceb02138 Move tui.go out of lib and into a separate package 2023-09-13 22:47:48 -07:00
6d6a1a5e12 Move a bunch of update-specific code out of the generic lib.go file and into the update command 2023-09-13 22:45:49 -07:00
a039b19b9c Change root command name to all lower case so that the cobra-generated examples work correctly on case-sensitive file systems 2023-09-13 19:46:49 -07:00
57c5a69f7d Fix bug where we failed to delete pre-saved history entries due to race conditions causing the DB to be locked 2023-09-12 18:55:13 -07:00
c311b09844 Improve error messages when we fail to delete pre-saved history entries 2023-09-12 15:53:52 -07:00
2ccbb8d587 Store timestamps in DB in Unix time, and display them in the Local time for consistent TZs in displays, and to ensure ordering is correct
This fixes a bug where entries could be out of order if they were recorded on machines in different TZs (e.g. if one machine had the TZ set to UTC). Admittedly, this commit isn't a perfect fix since
it doesn't change all the existing hishtory entries to be stored in UTC, but this just means that the ordering bug will continue to exist for historical entries, but be fixed for new entries. And
for our purposes, that is good enough. :)

 # Please enter the commit message for your changes. Lines starting
2023-09-09 12:28:01 -07:00
4bc23c9575 Add additional information about sync status to hishtory status -v for debugging purposes 2023-09-07 18:10:17 -07:00
c5bdee9ad5 Merge pull request #102 from lsmoura/sergio/no-ctx-ptr
Remove context pointers since there is no need to pass around a pointer to an interface
2023-09-06 19:58:08 -07:00
a12b0e5f6f no context pointers 2023-09-05 15:45:17 -04:00
83ad8c7b1f wrap errors with %w instead of using %v 2023-09-05 15:08:55 -04:00
5e44159a0b Remove extraneous fmt.Println from beta-mode feature for pre-saving history entries 2023-08-27 22:11:22 -07:00
2490082088 no-op refactoring: Move history entry building code from lib.go to cmd file for saving history entries 2023-08-27 22:05:24 -07:00
2294241003 Remove Search() call from install to optimize 2023-08-27 15:53:01 -07:00
ecdd6094b8 Remove Search() call from init to optimize init 2023-08-27 15:41:35 -07:00
25ec191f1a Implement pre-saving feature to ensure that long-running/non-terminating commands are saved in hishtory 2023-08-27 14:24:59 -07:00
8422aa21db Skip configuring the bash_profile on linux if bash_profile does not exist to fix #79 2023-02-27 18:14:32 -08:00
d15376f37d Refactor out deletion request handling to prep for #33 2022-12-18 00:19:52 -08:00
f8b51e49da Support customizing HISHTORY_PATH for people who want to install hishtory in an alternate location to fix #54 2022-12-16 22:22:57 -08:00
35444bf56e Swap ioutil to non-deprecated alternatives + clean up pre-commit errors 2022-11-27 11:59:06 -08:00
f5adac5140 Move code out of lib that is only referenced for one command 2022-11-19 17:14:27 -08:00
ab6bb719a7 Move code out of lib that is only referenced for one command 2022-11-19 17:12:43 -08:00
d9c4a59ddd Move code out of lib that is only referenced for one command 2022-11-19 17:06:28 -08:00
343f3cf1e5 Warn people if they're using an unsupported version of bash #37 2022-11-19 17:05:05 -08:00
31cea94096 Add TODO 2022-11-19 09:41:47 -08:00
1ae6b87dc1 Print a message telling people they must restart their shell per #37 2022-11-17 23:14:33 -08:00
d4efc62df1 Add client-side code to ask for feedback when uninstalling 2022-11-16 21:54:05 -08:00
cb38bb1281 Add TODO 2022-11-16 20:43:11 -08:00
86f9d67aff Fix test failures caused by the cobra install command not respecting the secret key
Also added a persistLog() function so that I can easily inspect the hishtory logs from test runs.
2022-11-16 20:28:25 -08:00
ba769ec700 Fix mis-alignment in example queries 2022-11-16 08:09:04 -08:00
65405b868f Remove no-op config-set that isn't needed now that we have good docs from cobra 2022-11-16 08:07:02 -08:00
fe6394d1b5 Some test fixes for the cobra integration 2022-11-16 08:03:23 -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
6ef9bb00d5 Add version to cobra help page 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
48e2a41d5c Migrate reupload to cobra 2022-11-16 08:03:23 -08:00
c59de42008 More refactoring to use cobra 2022-11-16 08:03:23 -08:00
342a02a843 Add initial cobra implementation for config-* 2022-11-16 08:03:23 -08:00