Commit Graph

41 Commits

Author SHA1 Message Date
Oleksandr Kozachuk 7648d3c814 Fully support check of the password correctness. 2022-12-18 14:21:38 +01:00
Oleksandr Kozachuk 0be2c39501 Improve some error messages, handle source command output through local out/err, that way output can be copied with pb source .... 2022-12-18 13:38:39 +01:00
Oleksandr Kozachuk 602cac9500 Differentiate in printer between error print and output print. 2022-12-18 13:21:09 +01:00
Oleksandr Kozachuk 1234c79db1 Basic support of remembering correct passwords is implemented. 2022-12-17 21:29:59 +01:00
Oleksandr Kozachuk 573567928c Add command unpass to forget saved password for a specific name. 2022-12-17 20:13:02 +01:00
Oleksandr Kozachuk 5ef5ef20ec Allow set the path to history and init file with env variables: LESSKEY_HISTORY and LESSKEY_INIT. 2022-12-17 20:05:57 +01:00
Oleksandr Kozachuk 982e3c3de3 Expand file name on source (tilde and environment variables). 2022-12-17 19:28:35 +01:00
Oleksandr Kozachuk e05d98b2ba Add source command and prepare to expand the file names in source command. 2022-12-17 15:58:41 +01:00
Oleksandr Kozachuk 9347bc3972 Implement possibility to copy output of commands to paste buffers. 2022-12-17 14:54:16 +01:00
Oleksandr Kozachuk 6286ce4238 Extent ls to match name and comment extra, it simplify search like: ls ^fld1 2022-12-17 11:48:33 +01:00
Oleksandr Kozachuk a55e883eda Move LKEval::news to test section, to avoid unused warning. 2022-12-16 20:55:23 +01:00
Oleksandr Kozachuk 4dcfc95ad8 Reformat the code to be not so wide. 2022-12-15 19:02:38 +01:00
Oleksandr Kozachuk 18faa1d766 Add support for an init file ~/.lesskeyrc 2022-12-15 19:02:05 +01:00
Oleksandr Kozachuk f41200050e Refactor a bit more for the multi output feature. 2022-12-14 16:40:42 +01:00
Oleksandr Kozachuk 680112384d Refactor a bit to allow different output destinations in future. 2022-12-14 16:35:20 +01:00
Oleksandr Kozachuk d13ed1129a Format code and fix tests. 2022-12-14 16:22:04 +01:00
Oleksandr Kozachuk 0c187b7b5b Handle EOF and interruptions more gracefully and correct. 2022-12-14 16:15:25 +01:00
Oleksandr Kozachuk 843b843b5e Add notion of scripts and support for empty commands and comments. 2022-12-14 16:02:02 +01:00
Oleksandr Kozachuk 2a05254415 Allow to enter regular expression as argument to ls command, to get only matching passwords. 2022-12-14 15:12:36 +01:00
Oleksandr Kozachuk 4207279364 Implement possibility to test password inputs, added some tests for enc command. 2022-12-14 11:44:52 +01:00
Oleksandr Kozachuk 85ac2a0420 Added enc and pass commands, change names of commands back to full. 2022-12-13 22:39:41 +01:00
Oleksandr Kozachuk a291aafcf9 Code reformat. 2022-12-12 13:28:06 +01:00
Oleksandr Kozachuk 72cb38929b Now it is possible to use row number from last ls output, instead of the name to reffer passwords. 2022-12-12 13:26:50 +01:00
Oleksandr Kozachuk a4a9c2afd0 Refactor ls command, to use password structure for sorting, also required for ls cache. 2022-12-12 12:58:26 +01:00
Oleksandr Kozachuk 5ad06ecf5b Start counter on ls with 1 and fix the tests. 2022-12-12 12:44:09 +01:00
Oleksandr Kozachuk 15bb09822a Fix sorting in l command. 2022-12-12 12:34:26 +01:00
Oleksandr Kozachuk 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. 2022-12-11 16:23:22 +01:00
Oleksandr Kozachuk 2ad8d25d2e Small fixes in tests. 2022-12-10 16:31:01 +01:00
Oleksandr Kozachuk afec096ff2 Add remove command. 2022-12-04 01:14:18 +01:00
Oleksandr Kozachuk de7fd70110 Reformat the code a bit more. 2022-12-04 00:13:25 +01:00
Oleksandr Kozachuk 157bab1d56 Reformat the code a bit. 2022-12-04 00:04:28 +01:00
Kiyomichi Kosaka 66acff9884 Simplify the parser and define password types explicitly. 2022-12-03 22:57:28 +00:00
Kiyomichi Kosaka 47243330a9 Reformat code. 2022-12-03 20:37:41 +00:00
Kiyomichi Kosaka a10fdeb10e Move Password to password.rs file 2022-12-03 20:09:16 +00:00
Kiyomichi Kosaka dfcda98981 Implement a fix for password recursion 2022-12-03 19:55:50 +00:00
Kiyomichi Kosaka 50a3398ad9 Move LK structure into own file. 2022-12-03 11:43:48 +00:00
Kiyomichi Kosaka 0818d93f9a Add readline history 2022-12-03 11:32:34 +00:00
Kiyomichi Kosaka 1c02fabe7d Add some test cases 2022-11-28 17:54:11 +00:00
ok210 1718fb3bb1 Refactor password to string conversion to use ToString trait, add gitignore. 2022-11-27 18:38:26 +01:00
Kiyomichi Kosaka a909cac999 Split the code to separate modules and add the first tests for the reply module. 2022-11-27 15:01:26 +00:00
Kiyomichi Kosaka ccb0f86bbb Initial commit 2022-11-27 14:03:00 +00:00