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
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
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
6b70b47aa0
specify version ranges
2020-12-26 16:03:57 +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
f264e74288
specify nom version
2020-12-25 04:18:24 +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
8c9e240e97
Document filter and modification syntax
2020-12-24 17:04:51 +00:00