Dustin J. Mitchell
e977fb294c
Implement modifying tasks' "wait" value
2021-05-31 08:49:35 -04:00
Dustin J. Mitchell
9e3646bf84
Summarize tasks nicely in console output
2021-05-30 16:36:20 -04:00
Dustin J. Mitchell
45db886f2a
add 'ta config path'
2021-05-23 09:12:04 -04:00
Dustin J. Mitchell
7f046a8e27
Merge pull request #225 from taskchampion/issue217
...
Support multiple exit codes
2021-05-21 10:26:24 -04:00
dbr
00089639fe
Include git HEAD rev in version output
...
Closes #241
2021-05-21 16:31:25 +10:00
Dustin J. Mitchell
bb7130f960
Support multiple exit codes
...
..with more specific error enums.
2021-05-18 18:57:55 +00:00
Dustin J. Mitchell
023e638335
Merge pull request #231 from taskchampion/working_set_rebuild_bug
...
Fix a working set rebuild bug
2021-05-17 21:36:56 -04:00
Dustin J. Mitchell
fd62c8327b
Add a ta config set subcommand
...
This uses `toml_edit` to edit the config file in-place. For the moment,
it only supports top-level arguments, but can be extended to do other
things later.
2021-05-16 09:53:41 -04:00
Dustin J. Mitchell
fa9e6ddcd5
Don't unwrap in production code
2021-05-16 09:40:35 -04:00
Dustin J. Mitchell
ac53383aea
remove debugging prints
2021-05-09 21:30:58 -04:00
Dustin J. Mitchell
0f0f2b0e75
rename CLI to ta
2021-05-04 17:09:47 -04:00
Dustin J. Mitchell
94d1217d81
Switch to TOML for configuration
2021-05-02 17:04:26 -04:00
Dustin J. Mitchell
c8d6619d71
Replace tempfile with tempdir
2021-04-16 19:29:27 -04:00
Dustin J. Mitchell
bbceed41f9
fix needless_question_mark
2021-03-29 19:25:12 -04:00
Dustin J. Mitchell
c42cc3bdcb
fix new clippy warnings
2021-03-27 23:38:51 -04:00
dbr
4d9755c43b
Replace 'failure' crate with anyhow+thiserror
...
Closes #148
2021-03-25 16:33:35 +11:00
Dustin J. Mitchell
02d9c577ab
use StorageConfig instead of ReplicaConfig
2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
b004b6cb93
use ServerConfig::into_server instead of server::from_config
2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
15ffc62279
rename taskstorage to storage
2021-01-10 22:22:17 -05:00
Dustin J. Mitchell
087769146e
Centralize API for working set to a single struct
...
Rather than allow addressing tasks either by working set ID or uuid,
with attendant performance issues, this moves the API for the working
set to a single struct that just serves as a 1-1 mapping of indexes to
UUIDs. It's up to the caller to use this information.
2021-01-09 23:42:27 +00:00
Dustin J. Mitchell
45d3e38c63
Always pass Uuids by value
...
Rust handles this well. Fixes #125 .
2021-01-09 22:09:06 +00:00
Dustin J. Mitchell
dc2df10158
Control whether to renumber the working set when rebuilding it
2021-01-02 14:47:36 -05:00
Dustin J. Mitchell
b62370c150
Rename replica.gc to replica.rebuild_working_set
...
The command-line operation is still `gc`, but we'll break that down into
finer pieces in the replica.
2021-01-02 13:23:48 -05:00
Dustin J. Mitchell
8b4f345387
Update documentation for reports, new CLI
...
This is basically a redraft of the documentation to be more complete and
better cover some of the features added since it was written.
2021-01-01 21:18:49 +00:00
Dustin J. Mitchell
46c3b31208
Parse reports from config, with defaults
2020-12-30 21:18:45 +00:00
Dustin J. Mitchell
fc977a0fe6
Limit Filter "universes" to invocation::filter
...
Universes are really an optimization of filtering tasks, so let's define
them there, and derive them from the set of conditions. This means that
complex filters might get missed and end up doing a full task scan, but
that's probably OK.
Note that this does not fix the working-set API issues (#108 and #123 ).
2020-12-30 00:26:53 +00:00
Dustin J. Mitchell
0a458b5f5b
Treat any bare word in the command line as a report name
2020-12-29 22:54:07 +00:00
Dustin J. Mitchell
92d629522b
rename client id -> client key
2020-12-28 21:32:59 +00:00
Dustin J. Mitchell
a8d45c67c6
Encrypt content sent to the server
...
This implements client-side encryption, so that users' task information
is not availble to the server (or to anyone who does not have the
`encryption_secret`).
2020-12-27 18:51:41 +00:00
Dustin J. Mitchell
c472e04a09
Merge pull request #127 from djmitche/issue76
...
Default to a local server, so `task sync` works out of the box
2020-12-26 10:45:15 -05:00
Dustin J. Mitchell
64b38ee814
add some debug logging
2020-12-26 15:34:00 +00:00
Dustin J. Mitchell
57834848f2
Default to a local server, so task sync works out of the box
2020-12-26 15:29:48 +00:00
Dustin J. Mitchell
00f548c713
implement generic report generation
2020-12-26 04:11:20 +00:00
Dustin J. Mitchell
922e71cd4d
use a s!(..) shorthand in CLI tests
2020-12-24 21:15:56 +00:00
Dustin J. Mitchell
75aaf8d4ab
use static strings for usage
2020-12-24 21:07:27 +00:00
Dustin J. Mitchell
7594144a2d
Merge pull request #115 from djmitche/issue110
...
Fix clippy warnings and make them all errors
2020-12-24 13:30:39 -05:00
Dustin J. Mitchell
8989b0d2e3
Fix clippy warnings and make them all errors
2020-12-24 17:39:49 +00:00
Dustin J. Mitchell
9c94a7b753
support filtering by tags
2020-12-24 16:38:08 +00:00
Dustin J. Mitchell
a0568f017c
Refactor filtering to start with a universe
2020-12-23 03:50:34 +00:00
Dustin J. Mitchell
5ea72f878a
display tags in 'task info'
2020-12-21 20:43:09 +00:00
Dustin J. Mitchell
54e8484bc2
Support CLI syntax for changing tags
2020-12-21 20:43:09 +00:00
Dustin J. Mitchell
8ba6277cce
use 'atty' to detect when colors can be used
2020-12-20 19:54:38 -05:00
Dustin J. Mitchell
7d17740ca8
use a generic Write instance for command output
2020-12-20 19:45:24 -05:00
Dustin J. Mitchell
6b550e7516
implement cli help
2020-12-20 18:42:21 -05:00
Dustin J. Mitchell
2c579b9f01
Switch to a command-line API closer to TaskWarrior
...
* Use a parser (rather than clap) to process the command line
* Outline some generic support for filtering, reporting, modifying, etc.
* Break argument parsing strictly from invocation, to allow independent testing
2020-12-19 16:40:09 -05:00