Commit Graph

107 Commits

Author SHA1 Message Date
Oleksandr Kozachuk a180291e94 Fix handling of empty password. 2023-01-07 13:46:33 +01:00
Oleksandr Kozachuk 122aeaf75b Refactor read_password function to take just the name as argument, not the prompt. 2023-01-07 13:40:00 +01:00
Oleksandr Kozachuk 54c2c0e5a1 Store pass command without password to history. 2023-01-07 13:18:39 +01:00
Oleksandr Kozachuk 2b56aed28e Refactor history handling: store only save and usefull commands, save them in LKEval state, do not safe pass command into history. 2023-01-07 13:16:47 +01:00
Oleksandr Kozachuk 4ee1d38be7 pass command accepts now optionally the password from command line, instead of stdin. 2023-01-07 12:06:41 +01:00
Oleksandr Kozachuk 44c6f371a8 Wrap lines in HTML. 2023-01-06 17:31:57 +01:00
Oleksandr Kozachuk ed894b8b16 Remove warning. 2023-01-06 17:22:52 +01:00
Oleksandr Kozachuk e0b5c0280e Integrate the REPL, now WASM32 works, just some functions missing. 2023-01-06 17:21:28 +01:00
Oleksandr Kozachuk 77f7db7dec Add possibility to add input instead of calling readline. 2023-01-06 17:13:42 +01:00
Oleksandr Kozachuk e9dba54750 Develop wasm support further. 2023-01-06 16:16:04 +01:00
Oleksandr Kozachuk 3416ea96ae Remove deadlock_detection feature from parking_lot, because it is incompatible with wasm32 2023-01-06 15:27:58 +01:00
Oleksandr Kozachuk 127f386e35 Fix compilation and tests. 2023-01-06 15:08:52 +01:00
Oleksandr Kozachuk 6f78130fab Rename command "leave" to "keep", sounds more appropreate. 2023-01-06 14:53:08 +01:00
Oleksandr Kozachuk 538a32a471 Switch from Rc<RefCell> to Arc<Mutex<T>> or Arc<ReentrantMutex<RefCell<T>>>. 2023-01-06 13:12:58 +01:00
Oleksandr Kozachuk a2978c1230 Fix printing correct password and reading master password. 2023-01-05 15:25:08 +01:00
Oleksandr Kozachuk fd3914dacb Renamed the dump command to save, added command dump to dump the db to stdout. 2023-01-03 11:58:48 +01:00
Oleksandr Kozachuk 1b96ca3239 Some WASM changes, not ready yet. 2023-01-03 11:15:40 +01:00
Oleksandr Kozachuk 69f65a5be0 Make helwasm compilable for wasm32-unknown-unknown target. 2023-01-01 19:46:14 +01:00
Oleksandr Kozachuk 7563645518 Fix tests, move rpassword usage to utils.rs to implement something different for wasm. 2023-01-01 19:04:56 +01:00
Oleksandr Kozachuk 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. 2023-01-01 18:50:16 +01:00
Oleksandr Kozachuk cff9e3f90d Make the height a bit better. 2022-12-31 17:16:02 +01:00
Oleksandr Kozachuk d3f00e7268 Add first prototype index.html 2022-12-31 17:08:32 +01:00
Oleksandr Kozachuk 984a416ae7 Fix space recognicion, support all kinds of spaces. 2022-12-28 19:34:24 +01:00
Oleksandr Kozachuk 41a3248084 Fix tests. 2022-12-28 17:18:37 +01:00
Oleksandr Kozachuk 78d5f46d43 Fix outuput in gen. 2022-12-28 14:57:54 +01:00
Oleksandr Kozachuk 5b20968ade Fix ld command sort order. 2022-12-24 16:01:27 +01:00
Oleksandr Kozachuk b89dd0936e Expand the commands. 2022-12-24 15:59:22 +01:00
Oleksandr Kozachuk 46fb2c6b40 Add leave command, to directly save the generated password and restructure the parser a bit. 2022-12-24 15:00:07 +01:00
Oleksandr Kozachuk 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). 2022-12-24 13:53:53 +01:00
Oleksandr Kozachuk f0ce3b4d96 Change password struct to use name as String instead of Rc<String>, fix gen command. 2022-12-23 20:14:07 +01:00
Oleksandr Kozachuk 13ea63d687 Fix gen command, but still has issues. 2022-12-22 19:28:38 +01:00
Kiyomichi Kosaka 3373f17332 Fix for gen command (not finished yet). 2022-12-22 15:07:56 +00:00
Kiyomichi Kosaka 03b2d43c6c Fix generation of single random passwords. 2022-12-22 12:10:13 +00:00
Kiyomichi Kosaka e8345b374d Implement gen command, to generate samples. 2022-12-22 12:07:13 +00:00
Kiyomichi Kosaka b6c7b08320 Move more command implementations from repl.rs to commands.rs. 2022-12-21 14:32:54 +00:00
Kiyomichi Kosaka 1845916a12 Move commands implementations to commands.rs. 2022-12-21 14:15:24 +00:00
Kiyomichi Kosaka de13dd6a7b Improve test cleanup by using scopeguard. 2022-12-21 14:00:01 +00:00
Kiyomichi Kosaka 35517b2849 Fix warnings output of pb command and add some more env vars tests. 2022-12-21 13:26:07 +00:00
Kiyomichi Kosaka 0e21e0c10d Fix compile warning. 2022-12-21 13:01:59 +00:00
Kiyomichi Kosaka c03d6ab560 Fix the warnings to output for the between passwords and write some tests for it, also write tests for some environment variables. 2022-12-21 12:59:57 +00:00
Oleksandr Kozachuk f67b64080c Same cleanup after last change. 2022-12-20 22:11:15 +01:00
Oleksandr Kozachuk c43221c590 Optimized the storage, key is now String instead of Rc<String>, fixed some error output. 2022-12-20 22:06:46 +01:00
Oleksandr Kozachuk fbdfca1982 Create a new structure LKOut to manage output and error streams, output warning about not correct passwords after "pass" command. 2022-12-20 20:05:42 +01:00
Oleksandr Kozachuk ae4e09b2b1 Rename the tool to hel. 2022-12-20 19:50:06 +01:00
Oleksandr Kozachuk dbb00caca1 Improved dump output with command to be copieable by pb command. 2022-12-18 15:16:37 +01:00
Oleksandr Kozachuk bc110f4940 Reformat source code. 2022-12-18 15:07:26 +01:00
Oleksandr Kozachuk 59d2b5a122 Fix environment varaible for the correct file. 2022-12-18 15:05:22 +01:00
Oleksandr Kozachuk 9ad7054b60 Support | prefix in dump file names to dump to a command instead of a file. 2022-12-18 15:02:19 +01:00
Oleksandr Kozachuk cfe1e1b062 First version of the dump command. 2022-12-18 14:46:22 +01:00
Oleksandr Kozachuk 7648d3c814 Fully support check of the password correctness. 2022-12-18 14:21:38 +01:00