Commit Graph

17 Commits

Author SHA1 Message Date
Robbert van der Helm f02dbb3755 Fix TOML parsing with large unsigned integers
The parser parses everything as signed integers so the configuration
file will fail to parse large numbers that don't fit in an i64.

https://github.com/alexcrichton/toml-rs/issues/256
2020-07-27 16:25:36 +02:00
Robbert van der Helm 6bba1a9bf8 Check for Wine and yabridge compatibility on sync
This will probably solve the last common setup issue. Starting Wine can
take a second so this check is only repeated when either Wine or
yabridge get updated.
2020-07-19 16:57:18 +02:00
Robbert van der Helm a8e914a71a Add a last known config field to the configuration
For verifying that a combination of Wine and yabridge is going to work
together properly.
2020-07-19 14:39:07 +02:00
Robbert van der Helm 8698a8fd0b Update messages in yabridgectl 2020-07-16 19:07:34 +02:00
Robbert van der Helm 836aefcfbb Verify that the PATH has been set up correctly
When creating copies with yabridgectl. This should at least give an
advance warning that some additional steps are required when first
setting up yabridge.
2020-07-16 16:56:27 +02:00
Robbert van der Helm 2ec53c78d9 Add a descriptive error when winedump is missing 2020-07-16 15:04:07 +02:00
Robbert van der Helm 1ee2fe4746 Use anyhow for formatting and handling errors
This works better than doing it manually, and it significantly reduces
the amount of boilerplate needed.
2020-07-16 14:43:00 +02:00
Robbert van der Helm f48b5e66ca Move all subcommand handlers to a module
To unclutter in main.rs a bit.
2020-07-16 13:43:50 +02:00
Robbert van der Helm ac5c6bab67 Show the installation method used 2020-07-15 16:10:52 +02:00
Robbert van der Helm 53ebfcd463 Implement yabridgectl sync 2020-07-14 22:26:23 +02:00
Robbert van der Helm 26f26fc21c Implement the status command 2020-07-14 18:35:54 +02:00
Robbert van der Helm b8eb031c77 Store paths in a BTreeSet
To avoid duplicates and to ensure that the order is stable.
2020-07-14 17:16:30 +02:00
Robbert van der Helm 3a7fd089b6 Add subcommands for managing directories 2020-07-14 16:46:49 +02:00
Robbert van der Helm f288bbb980 Fix yabridgectl config file loading 2020-07-14 16:36:56 +02:00
Robbert van der Helm 5f2cb434bc Fix searching for libyabridge.so in ~/.local/share 2020-07-13 16:23:49 +02:00
Robbert van der Helm 21d48c3022 Implement reading and writing of config files 2020-07-13 14:31:45 +02:00
Robbert van der Helm 4537b6a5b0 Add the configuration struct for yabridgectl 2020-07-13 13:26:09 +02:00