Commit Graph
247 Commits
Author SHA1 Message Date
steven-omaha bd96a9074a Revert "fix(grouping): non-canonical ordering"
This reverts commit 02c44c92d0.
2023-10-10 16:31:29 +02:00
steven-omaha 87e2eddf64 chore: bump dependencies 2023-10-10 15:38:19 +02:00
steven-omaha becdb8f413 docs(core): add panics section 2023-10-10 15:32:14 +02:00
steven-omaha 02c44c92d0 fix(grouping): non-canonical ordering
clippy: incorrect_partial_ord_impl_on_ord_type
2023-10-10 15:28:28 +02:00
theo court c59f22a427 Fix typo 2023-08-07 18:04:24 +02:00
steven-omaha 73c041922f chore: bump dependencies 2023-07-06 12:55:58 +02:00
steven-omaha 3515d8bc0b chore: Release 2023-06-06 16:53:50 +02:00
steven-omaha d11467a318 docs(core): docstrings 2023-06-06 16:14:28 +02:00
steven-omaha f394ea8938 refact(core): remove get_group_file_paths... 2023-06-06 16:11:54 +02:00
steven-omaha d27a5d7540 docs(core): docstrings 2023-06-06 16:10:40 +02:00
steven-omaha 4843543a74 feat(export): docstrings, man, README, switches 2023-06-06 15:30:24 +02:00
steven-omaha 0610cd0731 feat(export): second move method 2023-06-06 15:30:24 +02:00
steven-omaha 0b7fcbbbd4 feat(export): core logic 2023-06-06 15:30:24 +02:00
steven-omaha f527125e59 feat(export): CLI, data structures 2023-06-06 15:30:24 +02:00
steven-omaha a7e36324dc refact(core): manual let else 2023-06-02 14:07:54 +02:00
steven-omaha a573cd18f8 refact: use clone instead to_owned 2023-06-02 14:05:17 +02:00
steven-omaha 1022db2d48 refact: replace match with if let else 2023-06-02 14:04:43 +02:00
steven-omaha 3b830e9b60 refact: unncessary wraps 2023-06-02 14:03:48 +02:00
steven-omaha c3f73cb4fa refact: unncessary wraps 2023-06-02 14:02:12 +02:00
steven-omaha 89fc17c473 refact(main): create_empty_config_file 2023-06-02 12:38:42 +02:00
TeeWallz 25ea8d99b9 Added call to create config directory 2023-06-01 20:27:32 +02:00
steven-omaha 3b8e8c180f fix(rust): handle missing crates file
When no packages have been installed yet using cargo-install, the rust
backend has errored out until now when trying to load the file. If the
file does not exist, we assume it is empty and that no packages have
been installed for cargo.
2023-05-31 13:08:46 +02:00
steven-omaha dcd85f0156 chore: update subcrate repository urls 2023-05-30 15:30:44 +02:00
steven-omaha 0dc3c111b1 refact(core): simplify valid group name check 2023-05-30 14:56:28 +02:00
steven-omaha 1f70f328bc docs(core): remove outdated docstring 2023-05-30 14:55:29 +02:00
steven-omaha 182b0eaf16 chore: Release 2023-05-30 09:38:56 +02:00
steven-omaha 8f11e0fc0c chore: Release 2023-05-26 13:21:14 +02:00
steven-omaha 0ba385e741 chore: Release 2023-05-26 13:19:24 +02:00
steven-omaha 12c32ffccd refact(core): remove stale lint config 2023-05-26 00:27:05 +02:00
steven-omaha 7fe6a71dc4 docs(group): fix docstring 2023-05-24 09:54:23 +02:00
steven-omaha e6a2034ec8 fix(group): 'not a symlink' warning
Fixes #33.
2023-05-24 09:47:08 +02:00
steven-omaha 3b5484b6e4 docs(core): docstrings 2023-05-24 08:56:28 +02:00
steven-omaha 32305ce6f3 refact(core): arg destructuring 2023-05-24 08:56:19 +02:00
steven-omaha 654be10518 feat: warn about missing group only when relevant
So far we have warned the user when we first visited the group dir and
there were no group files. This lead to spurious warnings, e.g. when the
user wanted to import or create a group. We now defer the check to when
we actually need some content in the groups, and the program should not
perform the respective action without any groups present. This causes
some code duplication, but enhances UE.

Closes #31.
2023-05-23 17:54:08 +02:00
steven-omaha 008892b7ce fix: remove dbg statement 2023-05-23 17:47:58 +02:00
steven-omaha 9f4a5e4b48 fix: arg parsing
The 'pacdef group import' argument was called 'files', while we
expected it to be called 'groups'.
2023-05-23 17:43:06 +02:00
steven-omaha a4639a1c3a refact: overhaul arg parsing 2023-05-23 17:28:51 +02:00
steven-omaha 79c9e51e8c refact(action) 2023-05-23 13:11:49 +02:00
steven-omaha 9a66a03f7d chore: Release 2023-05-22 12:55:50 +02:00
steven-omaha b6c2ccaf48 refact(backend): make macro crate-public 2023-05-22 12:33:25 +02:00
steven-omaha 32c2471073 docs: extend 'get_args' docstring 2023-05-22 12:32:21 +02:00
steven-omaha 0a781ed15b chore: Release 2023-05-22 11:06:06 +02:00
steven-omaha 7b71e4178f ci: fix docs.rs
https://docs.rs/crate/pacdef_core/1.1.0/builds/817226
2023-05-22 11:05:16 +02:00
steven-omaha db6fd74832 fix: remove dbg 2023-05-19 17:55:29 +02:00
steven-omaha 4a1d67847e fix: don't overwrite config file
So far we have written a default config file if we encountered any error
when trying to read the one that should exist. That included:
* missing key-value-pairs,
* empty file, and
* a non-existant file.

Therefore, when a field is added to the Config struct, the entire config
file was overwritten with a default config. This occured during #20.

Instead, we now provide default values in form of generator functions to
serde. Any value that is present in the config is then parsed and
replaces the default value. Only if the config file does not exist we
create an empty one.

Closes #26.
2023-05-19 17:41:33 +02:00
steven-omaha e74368df7f docs(grouping): add docstrings 2023-05-19 16:05:27 +02:00
steven-omaha 0ffe0c345d feat(groups): allow nested group dirs
Instead of expecting all files to be located immediately under the group
dir, we allow them to be nested in additional folders. We walk the group
folder, and treat every file as a group file. The relative path of the
file as seen from the group dir becomes the group name.

Fixes #27.
2023-05-18 17:16:30 +02:00
steven-omaha ab913b4721 chore: Release 2023-05-17 15:09:40 +02:00
steven-omaha 7f887c8ee6 fix: pin libc version 2023-05-17 15:09:19 +02:00
steven-omaha 40fb1066e8 fix: privilege escalation for debian (#25) 2023-05-17 14:23:08 +02:00