Dustin J. Mitchell
adfde8be15
Merge pull request #236 from taskchampion/issue140
...
Generate usage documentation
2021-05-26 11:03:49 -04:00
Dustin J. Mitchell
09558f9329
Substitute usage information into the documentation
...
This will simplify keeping documentation in sync with the code.
2021-05-24 08:51:05 -04:00
dbr
b944e27880
Make 'cargo run' run ta binary
2021-05-24 19:44:32 +10: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
Dustin J. Mitchell
9d78654573
Merge pull request #221 from taskchampion/issue177
...
Require a filter be specified for modifications
2021-05-21 10:25:45 -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
0852bfd195
Require a filter be specified for modifications
...
This filter can either be `*` or some "real" filter. But an empty set
of arguments no longer automatically matches all tasks.
2021-05-18 18:57:46 +00:00
Dustin J. Mitchell
2345a57940
fix clippy warning
2021-05-18 18:57:29 +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
a778423cbc
store the filename of the loaded config file
2021-05-16 09:53:41 -04:00
Dustin J. Mitchell
09efb33073
move Settings to its own module
...
..and add some tests for it
2021-05-16 09:53:40 -04:00
Dustin J. Mitchell
fa9e6ddcd5
Don't unwrap in production code
2021-05-16 09:40:35 -04:00
Dustin J. Mitchell
febe6d8b68
sort the 'next' repot by id
2021-05-11 14:58:57 -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
6c0f7a736f
Use dirs-next
instead of dirs
2021-04-16 09:21:59 -04:00
dependabot[bot]
e69efe79d0
Bump textwrap from 0.12.1 to 0.13.4
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.12.1 to 0.13.4.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.12.1...0.13.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 07:30:25 +00:00
dependabot[bot]
82fc8dcd97
Bump config from 0.10.1 to 0.11.0
...
Bumps [config](https://github.com/mehcode/config-rs ) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/mehcode/config-rs/releases )
- [Changelog](https://github.com/mehcode/config-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mehcode/config-rs/commits/0.11.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 12:09:05 +00:00
dependabot[bot]
cc7f522e2a
Bump nom from 6.0.1 to 6.1.2
...
Bumps [nom](https://github.com/Geal/nom ) from 6.0.1 to 6.1.2.
- [Release notes](https://github.com/Geal/nom/releases )
- [Changelog](https://github.com/Geal/nom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Geal/nom/compare/6.0.1...6.1.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 07:43:37 +00:00
dependabot[bot]
def67c81b6
Bump assert_cmd from 1.0.2 to 1.0.3
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v1.0.2...v1.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 23:45:28 +00:00
dependabot[bot]
ff58711b2d
Bump predicates from 1.0.5 to 1.0.7
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 1.0.5 to 1.0.7.
- [Release notes](https://github.com/assert-rs/predicates-rs/releases )
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v1.0.5...v1.0.7 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 23:34:08 +00: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
dependabot[bot]
718f16154c
Bump env_logger from 0.8.2 to 0.8.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-27 23:05:56 +00:00
dependabot[bot]
e0dbeb2763
Bump log from 0.4.11 to 0.4.14
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.11 to 0.4.14.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.11...0.4.14 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-27 22:50:56 +00:00
dbr
b5b9e63a4f
Disable "unnecessary_wraps" linter as it is almost entirely false-positives
...
Was added in 1.50 and will be reduced in severity in next release as per https://github.com/rust-lang/rust-clippy/pull/6765
2021-03-25 18:20:47 +11:00
dbr
6d77b9a319
cargo fmt
2021-03-25 17:10:11 +11:00
dbr
0e7a4c2c33
Fix minor typo in doc comment
2021-03-25 16:34:53 +11:00
dbr
4d9755c43b
Replace 'failure' crate with anyhow+thiserror
...
Closes #148
2021-03-25 16:33:35 +11:00
Dustin J. Mitchell
3cccdc7e32
v0.3.0
2021-01-10 22:45:12 -05: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
b95c146a7e
Adjust Tag syntax to match TaskWarrior
2021-01-10 03:47:38 +00: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
b7c12eec1e
Allow filtering by status
2020-12-30 00:52:53 +00:00
Dustin J. Mitchell
83d8fc3b4e
Factor out the unnecessary ModArg struct
2020-12-30 00:28:48 +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