Commit Graph

24 Commits

Author SHA1 Message Date
615f491433 Simplify get_pkgmgr() subroutine.
Currently it only is configured to deal with pacman or yay (as noted in
the comment). Other AUR helpers would need to be configured.

Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-28 10:45:24 +01:00
aa7e2d2fbc Add package manager remove command.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-28 10:42:49 +01:00
f55124759e Don't print stderr output of commands (send to stdout).
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-28 10:37:46 +01:00
3822696640 Use single print statement for help information.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-27 10:39:14 +01:00
b7e98246ad Align assignment operators.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-27 10:33:50 +01:00
2d4ec58a81 Get package manager variables.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-27 10:26:35 +01:00
9e1ba7159f Simplify code.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-13 17:15:31 +01:00
601b4b7b81 Change license copyright year.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-12 09:27:27 +01:00
8a62fc9064 Avoid invalid ranges.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-11 20:09:16 +01:00
e6514c37d3 Simplify syntax.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-11 20:05:40 +01:00
e11cc694f5 Fix selection regex.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-11 20:02:59 +01:00
4cb213d585 Refactor into subroutines.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-09 16:47:25 +01:00
e9eec6cfcc Use local $~
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-07 16:25:03 +01:00
1065595f6d Change grep format.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-07 16:15:28 +01:00
e7b3192a00 Add 'return' statement to subroutines.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-07 16:12:29 +01:00
891427ead0 Use || instead of 'or'.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-03 18:51:44 +01:00
9dc43cc866 Implement interactive mode.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-03 18:34:18 +01:00
86c20031bc Use // operator for args/flags default values.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-03-01 18:00:25 +01:00
bea2957889 Save transactions to array.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-24 14:15:09 +01:00
9a0a4e03d0 Ensure -t argument is positive integer.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-24 14:02:19 +01:00
a728570c89 Implement log search to find transactions.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-24 13:57:09 +01:00
9bbe9b4a8f Save flags into variables.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-23 18:21:29 +01:00
ddc9514bb1 Add documentation for dry-run flag.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-23 18:08:12 +01:00
aca490651e Initial commit.
Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
2024-02-22 18:58:30 +01:00