Commit Graph

30 Commits

Author SHA1 Message Date
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 f4e20f821c Add ls hashmap to LK state, to remember displayed rows, to refer them later. 2022-12-11 16:22:04 +01:00
Oleksandr Kozachuk c8080b9856 Add Radix structure to convert number to any radix up to 36. 2022-12-11 16:21:17 +01:00
Oleksandr Kozachuk dd85460b69 Add possibility to add password name with default just in one short command: a <name> 2022-12-11 15:46:56 +01:00
Oleksandr Kozachuk ad920e8f05 Add support for the camel case mode, instead of regular mode. 2022-12-11 15:20:52 +01:00
Oleksandr Kozachuk 681ce3db23 Implement password encoding with given secret. 2022-12-11 15:00:04 +01:00
Oleksandr Kozachuk c06c7aa9e6 Add to_hex and to_b64 methods to SKey. 2022-12-11 12:15:31 +01:00
ok210 a944b6e389 Remove dependency on password structure in skey module. 2022-12-11 10:04:49 +00:00
Oleksandr Kozachuk a6be3a5cfc Fix skey, the tests are working now. 2022-12-10 20:37:19 +01:00
Oleksandr Kozachuk 2ad8d25d2e Small fixes in tests. 2022-12-10 16:31:01 +01:00
Oleksandr Kozachuk 8c3536da16 Add first implementation of skey. 2022-12-10 16:04:09 +01:00
Oleksandr Kozachuk afec096ff2 Add remove command. 2022-12-04 01:14:18 +01:00
Oleksandr Kozachuk 9500a4f35c Shortened commands. 2022-12-04 00:49:58 +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 474d0cd4e5 Slightly improve Password 2022-12-03 20:31:42 +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