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
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
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
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
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
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
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