Commit graph

5519 commits

Author SHA1 Message Date
2e4c29dd07
Merge pull request #1277 from matthiasbeyer/libimagstore/store-debug-output-prettify
Prettify Store debug output implementation
2018-02-11 15:19:13 +01:00
8a3f2602e0 Fix include_str!() in imag-init
Fixed by symlinking the imagrc.toml file to the crate directory of
imag-init.
2018-02-11 14:43:35 +01:00
30d2c28a22 Update version string: 0.6.0 -> 0.7.0 2018-02-11 14:22:24 +01:00
5e43773158 Do not allow linking with entry itself
Without this check, linking an entry with itself yields the following
error:

    ERROR[   1]: Entry is already borrowed: StoreId { base: Some("/home/m/.imag/store"), id: "notes/test" }
    ERROR[   2]: Error when calling retrieve() -- caused:
    ERROR[   3]: Error when calling get()

Which is semantically correct, but the user may get confused by that.

Instead, we print a nice error message that the entry cannot be linked
to itself.

This is not fixed in libimagentrylink itself, because libimagentrylink
cannot be called for the same entry.
If this would be possible, we would pass two `Entry` objects
mutably to the link functionality routines. This is not possible with
Rusts borrow semantics and therefor yields above error.

We compare strings to check whether the user accidentially linked an
entry with itself because we cannot get StoreIds from Entries because we
cannot get the Entry two times from the store in the first place. So
this is the best we have.
2018-02-11 13:41:16 +01:00
8fcd2a6c8c Prettify Store debug output implementation 2018-02-11 13:36:37 +01:00
fa8af0c053
Merge pull request #1275 from matthiasbeyer/clap-features
Clap features
2018-02-11 13:29:17 +01:00
4ead39233b
Merge pull request #1280 from matthiasbeyer/imag-init/fix-git-init
Fix: git dir is not worktree dir
2018-02-11 13:29:02 +01:00
d5e0c23499
Merge pull request #1270 from matthiasbeyer/license-header-checker
License header checker
2018-02-10 23:27:57 +01:00
17b59599c4
Merge pull request #1256 from matthiasbeyer/libimagerror/trace-iterators
Add TraceIterator::trace_unwrap_exit()
2018-02-10 23:26:27 +01:00
7f4cdced4a
Merge pull request #1262 from matthiasbeyer/do-not-print-ok
Do not print "Ok" after successful execution
2018-02-10 21:22:12 +01:00
1f462e4635
Merge pull request #1264 from matthiasbeyer/imag-log/show-alias-list
Alias subcommand "show" to "list"
2018-02-10 21:22:05 +01:00
7bbc379b73
Merge pull request #1266 from matthiasbeyer/imag/list-commands-alphabetically
Sort commands alphabetically
2018-02-10 21:21:57 +01:00
faafe6e994
Merge pull request #1265 from matthiasbeyer/imag/help
Add subcommand "help"
2018-02-10 18:56:29 +01:00
3342a08587
Merge pull request #1263 from matthiasbeyer/imag-grep/dont-print-stats-if-listing-files
Do not print stats when listing files with matches
2018-02-10 18:56:17 +01:00
3b098069c5 Fix: git dir is not worktree dir 2018-02-10 18:18:39 +01:00
9f48071e48 Do not print "Ok" after successful execution 2018-02-10 16:41:27 +01:00
ec2f3a73d7 Do not print stats when listing files with matches 2018-02-10 16:41:23 +01:00
2dfede240e Alias subcommand "show" to "list" 2018-02-10 16:41:20 +01:00
c17b256dfd Add subcommand "help" 2018-02-10 16:41:15 +01:00
863b52c2f0 Add TraceIterator::trace_unwrap_exit()
* Exits on the first Err(_)
* Introduces new Iterator type for iterating with unwrap and exit on
  error
2018-02-10 16:41:06 +01:00
45cec64575 Sort commands alphabetically 2018-02-10 16:40:53 +01:00
8b101bfaa8 Integrate license-check script in CI jobs 2018-02-10 16:40:47 +01:00
8fe71c5b73 Add check script whether license headers are there and updated 2018-02-10 16:40:47 +01:00
8656a38c50 Update dependency: clap: 2.17 -> 2.29 2018-02-10 16:40:34 +01:00
9d2900a7dc Compile clap with suggestions and color support 2018-02-10 16:40:34 +01:00
edd5925f88
Merge pull request #1272 from matthiasbeyer/prepare-0.6.0
Prepare 0.6.0 release
2018-02-10 16:38:11 +01:00
ee85ebd8a1 Rename switch for new pandoc version 2018-02-10 15:40:13 +01:00
35bc1009f2 Revert "Fix include path for release"
This reverts commit c229d7d1fc.
2018-02-10 15:14:03 +01:00
c461af6a07 Reorder crates because of changed dependencies 2018-02-10 15:12:51 +01:00
c229d7d1fc Fix include path for release 2018-02-10 15:08:40 +01:00
3b710e082d Add missing Cargo.toml metadata 2018-02-10 14:11:46 +01:00
a1c84a3770 Update date in documentation 2018-02-08 15:59:21 +01:00
1b2c479212 Update changelog for release 2018-02-08 15:58:19 +01:00
b0b06055ca Add new libraries/binaries to release script 2018-02-08 15:43:51 +01:00
4d026131a1
Merge pull request #1232 from matthiasbeyer/doc-overhaul
Doc overhaul
2018-02-07 10:07:27 +01:00
73c1dbbbe8
Merge pull request #1268 from matthiasbeyer/update-license-header-dates
Update dates in license header
2018-02-07 09:04:55 +01:00
56cb21e81a
Merge pull request #1261 from matthiasbeyer/missing-changelog-bugfix-entries
Add missing changelog entries
2018-02-07 09:04:47 +01:00
d5a9e4930d Update dates in license header
And add missing header in one file
2018-02-07 02:48:53 +01:00
f852e4e464 Add missing changelog entries 2018-02-07 01:58:37 +01:00
c7e1842000
Merge pull request #1260 from matthiasbeyer/imag-mv/fix-links
imag-mv: Fix links after moving entry
2018-02-07 01:57:11 +01:00
1217d88a50 Fix links after moving entry 2018-02-06 23:37:21 +01:00
864e457dce
Merge pull request #1259 from matthiasbeyer/imag-log/no-leading-space
Do not put a leading space in the log
2018-02-06 23:29:22 +01:00
da74896248
Merge pull request #1258 from matthiasbeyer/imag-log/dont-list-non-log-entries
Do not list entries which are not "log" entries
2018-02-06 22:39:13 +01:00
1b588172dd
Merge pull request #1255 from matthiasbeyer/imag-notes/fix-list
Fix imag-notes list errors
2018-02-06 21:45:37 +01:00
88b7b43d2c Do not put a leading space in the log 2018-02-06 20:54:11 +01:00
f44f13e23a Do not list entries which are not "log" entries 2018-02-06 20:48:47 +01:00
8006edb806
Merge pull request #1251 from matthiasbeyer/imag-error-output
`imag`: Print proper imag command
2018-02-06 20:43:29 +01:00
29e88c5de0 Fix: Header entry setting
The header was not set properly. This fixes this bug.
2018-02-06 20:42:43 +01:00
346e5a9444 Add link to toml_query error types 2018-02-06 20:42:43 +01:00
97e613d8c5 Use libimagstore get iterator
Use libimagstore infrastructure to transform iterator in
StoreIdGetIterator for getting entries from store.
2018-02-06 20:41:13 +01:00