Commit Graph

  • d4eeea73d8 Improve readline history. main Oleksandr Kozachuk 2023-07-18 14:22:15 +02:00
  • b3260e04fb Do not print error on adding, when exactly the same already exist, it ignores it then silently. Oleksandr Kozachuk 2023-02-02 10:54:08 +01:00
  • 464ac458d2 Simplify call_cmd_with_input. Oleksandr Kozachuk 2023-01-11 14:29:10 +01:00
  • 8db5e66f83 Small refactoring/simplification of radix code. Oleksandr Kozachuk 2023-01-10 13:58:25 +01:00
  • ab79a100d3 Small changes for the html. Oleksandr Kozachuk 2023-01-09 13:53:23 +01:00
  • ccc318b2ad Increase the max history size for hel to 10000. Oleksandr Kozachuk 2023-01-07 13:55:37 +01:00
  • a180291e94 Fix handling of empty password. Oleksandr Kozachuk 2023-01-07 13:46:33 +01:00
  • 122aeaf75b Refactor read_password function to take just the name as argument, not the prompt. Oleksandr Kozachuk 2023-01-07 13:40:00 +01:00
  • 54c2c0e5a1 Store pass command without password to history. Oleksandr Kozachuk 2023-01-07 13:18:39 +01:00
  • 2b56aed28e Refactor history handling: store only save and usefull commands, save them in LKEval state, do not safe pass command into history. Oleksandr Kozachuk 2023-01-07 13:16:47 +01:00
  • 4ee1d38be7 pass command accepts now optionally the password from command line, instead of stdin. Oleksandr Kozachuk 2023-01-07 12:06:41 +01:00
  • 44c6f371a8 Wrap lines in HTML. Oleksandr Kozachuk 2023-01-06 17:31:57 +01:00
  • ed894b8b16 Remove warning. Oleksandr Kozachuk 2023-01-06 17:22:52 +01:00
  • e0b5c0280e Integrate the REPL, now WASM32 works, just some functions missing. Oleksandr Kozachuk 2023-01-06 17:21:28 +01:00
  • 77f7db7dec Add possibility to add input instead of calling readline. Oleksandr Kozachuk 2023-01-06 17:13:42 +01:00
  • e9dba54750 Develop wasm support further. Oleksandr Kozachuk 2023-01-06 16:16:04 +01:00
  • 3416ea96ae Remove deadlock_detection feature from parking_lot, because it is incompatible with wasm32 Oleksandr Kozachuk 2023-01-06 15:27:58 +01:00
  • 127f386e35 Fix compilation and tests. Oleksandr Kozachuk 2023-01-06 15:08:52 +01:00
  • 6f78130fab Rename command "leave" to "keep", sounds more appropreate. Oleksandr Kozachuk 2023-01-03 16:25:29 +01:00
  • 538a32a471 Switch from Rc<RefCell> to Arc<Mutex<T>> or Arc<ReentrantMutex<RefCell<T>>>. Oleksandr Kozachuk 2023-01-06 13:12:58 +01:00
  • a2978c1230 Fix printing correct password and reading master password. Oleksandr Kozachuk 2023-01-05 15:25:08 +01:00
  • fd3914dacb Renamed the dump command to save, added command dump to dump the db to stdout. Oleksandr Kozachuk 2023-01-03 11:58:48 +01:00
  • 1b96ca3239 Some WASM changes, not ready yet. Oleksandr Kozachuk 2023-01-03 11:15:40 +01:00
  • 69f65a5be0 Make helwasm compilable for wasm32-unknown-unknown target. Oleksandr Kozachuk 2023-01-01 19:46:14 +01:00
  • 7563645518 Fix tests, move rpassword usage to utils.rs to implement something different for wasm. Oleksandr Kozachuk 2023-01-01 19:04:56 +01:00
  • eced302282 Split project into three workspaces: hel (the library), helcli (the tool) and helwasm (the wasm code). Move wasm incompatible code to extra modules in utils.rs to be implementable separately for wasm. Oleksandr Kozachuk 2023-01-01 18:50:16 +01:00
  • cff9e3f90d Make the height a bit better. Oleksandr Kozachuk 2022-12-31 17:16:02 +01:00
  • d3f00e7268 Add first prototype index.html Oleksandr Kozachuk 2022-12-31 17:08:32 +01:00
  • 984a416ae7 Fix space recognicion, support all kinds of spaces. Oleksandr Kozachuk 2022-12-28 19:34:24 +01:00
  • 41a3248084 Fix tests. Oleksandr Kozachuk 2022-12-28 17:18:37 +01:00
  • 78d5f46d43 Fix outuput in gen. Oleksandr Kozachuk 2022-12-28 14:57:54 +01:00
  • 5b20968ade Fix ld command sort order. Oleksandr Kozachuk 2022-12-24 16:01:27 +01:00
  • b89dd0936e Expand the commands. Oleksandr Kozachuk 2022-12-24 15:59:22 +01:00
  • 46fb2c6b40 Add leave command, to directly save the generated password and restructure the parser a bit. Oleksandr Kozachuk 2022-12-24 15:00:07 +01:00
  • a69fceb126 Add ld command, like ls but sort by date. Fix quit command in scripts, output passwords with spaces when no prefix given (align output by name, somewhat). Oleksandr Kozachuk 2022-12-24 13:53:53 +01:00
  • f0ce3b4d96 Change password struct to use name as String instead of Rc<String>, fix gen command. Oleksandr Kozachuk 2022-12-23 20:14:07 +01:00
  • 13ea63d687 Fix gen command, but still has issues. Oleksandr Kozachuk 2022-12-22 19:28:38 +01:00
  • 3373f17332 Fix for gen command (not finished yet). Kiyomichi Kosaka 2022-12-22 15:07:56 +00:00
  • 03b2d43c6c Fix generation of single random passwords. Kiyomichi Kosaka 2022-12-22 12:10:13 +00:00
  • e8345b374d Implement gen command, to generate samples. Kiyomichi Kosaka 2022-12-22 12:07:13 +00:00
  • b6c7b08320 Move more command implementations from repl.rs to commands.rs. Kiyomichi Kosaka 2022-12-21 14:32:54 +00:00
  • 1845916a12 Move commands implementations to commands.rs. Kiyomichi Kosaka 2022-12-21 14:15:24 +00:00
  • de13dd6a7b Improve test cleanup by using scopeguard. Kiyomichi Kosaka 2022-12-21 14:00:01 +00:00
  • 35517b2849 Fix warnings output of pb command and add some more env vars tests. Kiyomichi Kosaka 2022-12-21 13:26:07 +00:00
  • 0e21e0c10d Fix compile warning. Kiyomichi Kosaka 2022-12-21 13:01:59 +00:00
  • c03d6ab560 Fix the warnings to output for the between passwords and write some tests for it, also write tests for some environment variables. Kiyomichi Kosaka 2022-12-21 12:59:57 +00:00
  • f67b64080c Same cleanup after last change. Oleksandr Kozachuk 2022-12-20 22:11:15 +01:00
  • c43221c590 Optimized the storage, key is now String instead of Rc<String>, fixed some error output. Oleksandr Kozachuk 2022-12-20 22:06:46 +01:00
  • fbdfca1982 Create a new structure LKOut to manage output and error streams, output warning about not correct passwords after "pass" command. Oleksandr Kozachuk 2022-12-20 20:05:42 +01:00
  • ae4e09b2b1 Rename the tool to hel. Oleksandr Kozachuk 2022-12-20 19:50:06 +01:00
  • dbb00caca1 Improved dump output with command to be copieable by pb command. Oleksandr Kozachuk 2022-12-18 15:16:37 +01:00
  • bc110f4940 Reformat source code. Oleksandr Kozachuk 2022-12-18 15:07:26 +01:00
  • 59d2b5a122 Fix environment varaible for the correct file. Oleksandr Kozachuk 2022-12-18 15:05:22 +01:00
  • 9ad7054b60 Support | prefix in dump file names to dump to a command instead of a file. Oleksandr Kozachuk 2022-12-18 15:02:19 +01:00
  • cfe1e1b062 First version of the dump command. Oleksandr Kozachuk 2022-12-18 14:46:22 +01:00
  • 7648d3c814 Fully support check of the password correctness. Oleksandr Kozachuk 2022-12-18 14:21:38 +01:00
  • 0be2c39501 Improve some error messages, handle source command output through local out/err, that way output can be copied with pb source .... Oleksandr Kozachuk 2022-12-18 13:38:39 +01:00
  • 602cac9500 Differentiate in printer between error print and output print. Oleksandr Kozachuk 2022-12-18 13:21:09 +01:00
  • 1234c79db1 Basic support of remembering correct passwords is implemented. Oleksandr Kozachuk 2022-12-17 21:29:59 +01:00
  • 573567928c Add command unpass to forget saved password for a specific name. Oleksandr Kozachuk 2022-12-17 20:13:02 +01:00
  • 5ef5ef20ec Allow set the path to history and init file with env variables: LESSKEY_HISTORY and LESSKEY_INIT. Oleksandr Kozachuk 2022-12-17 20:05:57 +01:00
  • 982e3c3de3 Expand file name on source (tilde and environment variables). Oleksandr Kozachuk 2022-12-17 19:28:35 +01:00
  • e05d98b2ba Add source command and prepare to expand the file names in source command. Oleksandr Kozachuk 2022-12-17 15:58:41 +01:00
  • 9347bc3972 Implement possibility to copy output of commands to paste buffers. Oleksandr Kozachuk 2022-12-17 14:54:16 +01:00
  • 6286ce4238 Extent ls to match name and comment extra, it simplify search like: ls ^fld1 Oleksandr Kozachuk 2022-12-17 11:48:33 +01:00
  • a55e883eda Move LKEval::news to test section, to avoid unused warning. Oleksandr Kozachuk 2022-12-16 20:55:23 +01:00
  • cd82806ee1 Fix and improve call_cmd_with_input, add tests. Oleksandr Kozachuk 2022-12-16 20:49:14 +01:00
  • 56dac08bdf Add a function to call commands with str as input and return the output as String. Oleksandr Kozachuk 2022-12-15 20:23:19 +01:00
  • 4dcfc95ad8 Reformat the code to be not so wide. Oleksandr Kozachuk 2022-12-15 19:02:38 +01:00
  • 18faa1d766 Add support for an init file ~/.lesskeyrc Oleksandr Kozachuk 2022-12-15 19:02:05 +01:00
  • f41200050e Refactor a bit more for the multi output feature. Oleksandr Kozachuk 2022-12-14 16:40:42 +01:00
  • 680112384d Refactor a bit to allow different output destinations in future. Oleksandr Kozachuk 2022-12-14 16:35:20 +01:00
  • d13ed1129a Format code and fix tests. Oleksandr Kozachuk 2022-12-14 16:22:04 +01:00
  • 0c187b7b5b Handle EOF and interruptions more gracefully and correct. Oleksandr Kozachuk 2022-12-14 16:15:25 +01:00
  • 843b843b5e Add notion of scripts and support for empty commands and comments. Oleksandr Kozachuk 2022-12-14 16:02:02 +01:00
  • 2a05254415 Allow to enter regular expression as argument to ls command, to get only matching passwords. Oleksandr Kozachuk 2022-12-14 15:12:36 +01:00
  • 4207279364 Implement possibility to test password inputs, added some tests for enc command. Oleksandr Kozachuk 2022-12-14 11:44:52 +01:00
  • 85ac2a0420 Added enc and pass commands, change names of commands back to full. Oleksandr Kozachuk 2022-12-13 22:39:41 +01:00
  • a291aafcf9 Code reformat. Oleksandr Kozachuk 2022-12-12 13:28:06 +01:00
  • 72cb38929b Now it is possible to use row number from last ls output, instead of the name to reffer passwords. Oleksandr Kozachuk 2022-12-12 13:26:50 +01:00
  • a4a9c2afd0 Refactor ls command, to use password structure for sorting, also required for ls cache. Oleksandr Kozachuk 2022-12-12 12:58:26 +01:00
  • 5ad06ecf5b Start counter on ls with 1 and fix the tests. Oleksandr Kozachuk 2022-12-12 12:44:09 +01:00
  • 15bb09822a Fix sorting in l command. Oleksandr Kozachuk 2022-12-12 12:34:26 +01:00
  • ac01307421 Refactor ls command, to move the code to a separate function and display the line number in 36 radix, as preparation to remember the output. Sort currently not work any more. Oleksandr Kozachuk 2022-12-11 16:23:22 +01:00
  • f4e20f821c Add ls hashmap to LK state, to remember displayed rows, to refer them later. Oleksandr Kozachuk 2022-12-11 16:22:04 +01:00
  • c8080b9856 Add Radix structure to convert number to any radix up to 36. Oleksandr Kozachuk 2022-12-11 16:21:17 +01:00
  • dd85460b69 Add possibility to add password name with default just in one short command: a <name> Oleksandr Kozachuk 2022-12-11 15:46:56 +01:00
  • ad920e8f05 Add support for the camel case mode, instead of regular mode. Oleksandr Kozachuk 2022-12-11 15:20:52 +01:00
  • 681ce3db23 Implement password encoding with given secret. Oleksandr Kozachuk 2022-12-11 15:00:04 +01:00
  • c06c7aa9e6 Add to_hex and to_b64 methods to SKey. Oleksandr Kozachuk 2022-12-11 12:15:31 +01:00
  • 2454d91a0e Add htop to the replit environment. Kiyomichi Kosaka 2022-12-11 10:05:47 +00:00
  • a944b6e389 Remove dependency on password structure in skey module. ok210 2022-12-11 10:04:49 +00:00
  • a6be3a5cfc Fix skey, the tests are working now. Oleksandr Kozachuk 2022-12-10 20:37:19 +01:00
  • 2ad8d25d2e Small fixes in tests. Oleksandr Kozachuk 2022-12-10 16:26:45 +01:00
  • 8c3536da16 Add first implementation of skey. Oleksandr Kozachuk 2022-12-10 16:04:09 +01:00
  • afec096ff2 Add remove command. Oleksandr Kozachuk 2022-12-04 01:14:18 +01:00
  • 9500a4f35c Shortened commands. Oleksandr Kozachuk 2022-12-04 00:49:58 +01:00
  • de7fd70110 Reformat the code a bit more. Oleksandr Kozachuk 2022-12-04 00:13:25 +01:00
  • 157bab1d56 Reformat the code a bit. Oleksandr Kozachuk 2022-12-04 00:04:28 +01:00
  • 66acff9884 Simplify the parser and define password types explicitly. Kiyomichi Kosaka 2022-12-03 22:57:28 +00:00