Commit graph

1447 commits

Author SHA1 Message Date
Arne Beer bb482addc3
test: pueue edit 2022-07-27 18:47:19 +02:00
Arne Beer d94118ae59
fix: Interpret $EDITOR as a shell expression
Interpret the `$EDITOR` command, when editing a task's command/path,
as a shell expression instead of an executable.
This gives users more control over how their editor should be started.
2022-07-27 18:47:19 +02:00
Arne Beer eb39357b42
refactor: Move process handling code to pueue_lib 2022-07-27 18:47:18 +02:00
Arne Beer 0faac3a47f
refactor: Simplify platform specific network modules 2022-07-27 15:52:08 +02:00
Arne Beer 61b7eb536b
CI: manual packaging workflow to fix UPX issues 2022-07-23 19:24:10 +02:00
Arne Beer e554835180
CI: Ignore flaky windows process tests 2022-07-22 03:02:15 +02:00
Arne Beer 3efdcec911
Ci: Don't fail fast in packaging workflow 2022-07-22 02:37:34 +02:00
Arne Beer b6d1976a1b
CI: Move code coverage to dedicated workflow 2022-07-22 02:36:27 +02:00
Arne Beer f3e9380c81
Merge pull request #331 from Nukesor/development
Development
2022-07-21 14:40:21 +02:00
Arne Beer 06feddaf05
(cargo-release) version 2.1.0 2022-07-21 14:38:57 +02:00
Arne Beer 2ed2cd05e1
docs: Changelog proofreading 2022-07-21 14:33:46 +02:00
Arne Beer 7d043a1832
change: Hide Task.env and AddMessage.env in debug log 2022-07-21 14:15:50 +02:00
Arne Beer 13218fd764
change: Better debug logging output 2022-07-21 14:05:11 +02:00
Arne Beer b19b166e12
refactor: Replace vec![] with Vec::new() 2022-07-20 03:46:04 +02:00
Arne Beer 1ba3a91e34
refactor: Order Cargo.toml files alphabetically 2022-07-20 03:45:57 +02:00
Arne Beer 523cc680a6
Merge pull request #332 from Nukesor/client-tests
Client tests
2022-07-20 02:54:26 +02:00
Arne Beer 53f58f888d
tests: Daemon reset logic 2022-07-20 02:44:03 +02:00
Arne Beer fa59b871b4
tests: Client remote follow with last lines 2022-07-20 02:43:49 +02:00
Arne Beer 667d3acaa0
tests: Client tests for 'group' 2022-07-20 02:43:39 +02:00
Arne Beer 1a8b8dda6d
tests: client tests for local 'follow' 2022-07-20 02:43:09 +02:00
Arne Beer 082b5b8852
change: Exit 'pueue follow' on finished task when reading local logs 2022-07-20 02:43:09 +02:00
Arne Beer 1ed9b475d8
tests: client remote 'follow' 2022-07-20 02:43:01 +02:00
Arne Beer 8957187197
change: Exit 'pueue follow' on finished task when reading remote logs 2022-07-20 02:43:01 +02:00
Arne Beer 1e708ffbc4
add: Message::Close
This message indicates the client that everything is done and the
connection is being closed.
2022-07-20 02:43:01 +02:00
Arne Beer 46f9c330af
fix: Handle rapid successive messages 2022-07-20 02:43:01 +02:00
Arne Beer a084ec9213
fix: Rephrase a few comments 2022-07-20 02:43:01 +02:00
Arne Beer 3cb338ed8e
chore: Update dependencies 2022-07-20 02:43:01 +02:00
Arne Beer 1acab8f1d7
tests: client 'log' 2022-07-20 02:42:52 +02:00
Arne Beer d9c7c45230
fix: Force comfy-table styling with --color=always in logs 2022-07-20 02:42:52 +02:00
Arne Beer 96ab5dc603
tests Client 'status --json' 2022-07-20 02:42:41 +02:00
Arne Beer 58186514e6
add: Full status table 2022-07-20 02:42:41 +02:00
Arne Beer eca5440eee
fix: Comment 2022-07-20 02:42:41 +02:00
Arne Beer 9aa6ae201a
tests: Pueue status output 2022-07-20 02:42:34 +02:00
Arne Beer 62013cf803
fix: Force comfy-table styling with --color=always 2022-07-20 02:42:34 +02:00
Arne Beer d82d175767
tests: Build client output helper
Build a test helper, which allows us to compare client output to
templated snapshots in tests.
2022-07-20 02:41:58 +02:00
Arne Beer 6e425d90da
change: Directly return tasks in wait test helpers 2022-07-17 21:55:19 +02:00
Arne Beer 5573b50c05
refactor: Move client completions test to client test directory 2022-07-17 21:54:20 +02:00
Arne Beer 24ecc86df2
refactor: Move tests from 'unix' to 'daemon' 2022-07-17 16:04:32 +02:00
Arne Beer 5056e02a4f
refactor: Move group status wait to wait.rs 2022-07-17 15:09:56 +02:00
Arne Beer 50442d82dd
chore: Prepare 2.1.0 Changelog 2022-07-17 15:02:44 +02:00
Arne Beer 910a3332e1
Merge pull request #320 from mjpieters/cli-color-option
Add --color cli switch
2022-07-17 14:39:27 +02:00
Martijn Pieters adb59fbecd Add --color command-line switch
The default 'auto' enables styled output when connected to a tty. The
other options are 'always' and 'never'.
2022-07-17 12:07:56 +01:00
Martijn Pieters 7bc6ac5a00 Move light/dark color detail into OutputStyle
- Remove the red/green/yellow/white methods, and instead have style_text swap
  out colours when styling.
- Add a styled_cell method to ensure all Comfy-table output is following the
  same rules.
2022-07-17 12:00:46 +01:00
Martijn Pieters f97a239c37 Refactor output styling
This consolidates output style responsibility into a single struct.

- Rename the Color struct to OutputStyle
- Rename the module to 'style'
- Move the 'style_text' helper into a method on OutputStyle
- Update all uses to use `style` as the variable name.
2022-07-17 12:00:46 +01:00
Arne Beer 271b690802
Merge branch 'main' into development 2022-07-16 15:58:54 +02:00
Arne Beer d41a5782e7
Ignore flaky windows test
One of the window stest is flaky since quite some time.
Until this is resolved, this particular test will be ignored.

Tracking issue:
https://github.com/Nukesor/pueue/issues/315
2022-07-16 15:58:25 +02:00
Arne Beer 2f67cfc7f5
Merge branch 'main' into development 2022-07-16 15:23:51 +02:00
Arne Beer 85f403dc8d
Merge pull request #330 from Nukesor/ignore-windows-test
Ignore flaky windows test
2022-07-16 15:18:54 +02:00
Arne Beer 526aea332b
Ignore flaky windows test
One of the window stest is flaky since quite some time.
Until this is resolved, this particular test will be ignored.

Tracking issue:
https://github.com/Nukesor/pueue/issues/315
2022-07-16 15:02:27 +02:00
Arne Beer b28a5bc1c1
Merge pull request #328 from Nukesor/fix-windows-lint
fix: Windows test lint error
2022-07-15 00:24:00 +02:00