Commit graph

67 commits

Author SHA1 Message Date
59a3662ac4 Reorganize code in subdirs 2017-08-27 15:12:09 +02:00
Robert Ignat
625938398d Use file_abstraction module instead of store
to import `InMemoryFileAbstraction` into runtime
2017-07-13 18:24:20 +02:00
Robert Ignat
73d3cf687c Add debug output for paths 2017-07-13 18:24:20 +02:00
Robert Ignat
94928c33ca Use inmemory file system for imag-link tests 2017-07-13 18:24:20 +02:00
Robert Ignat
ad5b546ff7 Add private Runtime constructor 2017-07-13 18:24:20 +02:00
Robert Ignat
6ded27c6ea Add new Runtime constructor
that accepts a Configuration argument;
removed `GetConfiguration` trait and all the previous changes
needed for it
2017-07-13 18:24:20 +02:00
Robert Ignat
52b377eaa1 Make configuration traits methods non-static 2017-07-08 10:44:14 +02:00
Robert Ignat
6f42e7d002 Add configuration traits 2017-07-08 10:44:14 +02:00
Robert Ignat
0def6a3d5a Add CliSpec trait for Runtime initialisation 2017-07-08 10:44:14 +02:00
0f47c4afc7 Minify match 2017-06-21 08:34:44 +02:00
d3d6e830d7 Print error while panicing 2017-06-21 08:34:44 +02:00
699f4083e9 Add Runtime::store_backend_to_stdout(), make _stdio() variant use stdin properly 2017-06-20 20:57:40 +02:00
801622ecf2 Add output where paths is set 2017-06-20 20:34:27 +02:00
41f3b10976 Add Runtime::store_backend_to_stdio() function 2017-06-18 13:37:50 +02:00
25ff89f5fc Remove hook support from libimagrt 2017-06-06 11:12:37 +02:00
d9569e6169 Add documentation for Runtime functions 2017-02-21 15:31:24 +01:00
dc196793e9 Pass real app name 2016-11-02 14:37:45 +01:00
39304db8ba Clone App here so we can consume it elsewhere 2016-11-02 14:37:45 +01:00
82e61db4f7 Bake in shell-compl generation
Therefor we need to have at least clap 2.16.1.

We bake this into libimagrt::runtime::Runtime, so all binary crates
should automatically have it.
2016-10-28 09:42:44 +02:00
921d25ac9c Add StoreUnloadHook registering in runtime 2016-10-06 18:42:18 +02:00
221b87d7fb libimagrt: Add copyright notice to all files 2016-10-01 17:35:06 +02:00
40dbdaa5e1 Fix git hook registration fail warn message. 2016-09-18 14:44:08 +02:00
f9ea5c5013 DeleteHook should be executed after the delete action 2016-09-17 18:41:03 +02:00
2a82762e9a Remove hook initialization from runtime setup
for hooks that are removed by the latest commit
2016-09-17 15:28:06 +02:00
f23004a8ec Make git-hook-registration not only when debugging 2016-09-07 22:05:30 +02:00
f0404d91e8 Pass store path to git hooks, so we can initialize properly 2016-09-07 22:05:27 +02:00
2562b705b8 Add git hooks in the runtime setup code 2016-09-07 22:05:27 +02:00
ba235b2051 Make arg names publicly available 2016-08-06 20:05:23 +02:00
8412ea195f Configure coloring in logger setup 2016-08-02 11:39:01 +02:00
6571429123 Search for imagrc in RTP and not in RTP/store 2016-07-27 19:15:50 +02:00
3eedab5206 Add Runtime functionality to patch in-memory-configuration-file-contents on loading application 2016-07-24 19:30:04 +02:00
6f0670003b Add default commandline argument for configuration override 2016-07-24 19:30:04 +02:00
2440260abe Change default log level to Warn 2016-07-17 00:49:39 +02:00
df1523db3e Fix: hook registering should be hook-type agnostic 2016-07-16 11:39:34 +02:00
c03fb00c20 Replace error boxing and wrapping by helper generated with libimagerror 2016-06-27 18:23:54 +02:00
180dfbf0b1 Fix: Pass the confguration path as parameter for Configuration::new()
If there is none, fall back to the RTP.
2016-05-28 23:11:10 +02:00
e3db21b009 Use IntoError trait for less ugly code 2016-05-27 10:27:06 +02:00
9a92f9091f Add env_logger as fallback if IMAG_LOG_ENV is present 2016-05-24 16:43:04 +02:00
b4b3a0ede8 Only warn if there is no config file 2016-05-23 15:12:57 +02:00
ee32a85ff3 libimagrt: Change dependency from libimagutil -> libimagerror 2016-05-18 18:31:54 +02:00
7b855f82f3 Remove unwrap() calling by matching 2016-05-15 14:00:24 +02:00
Andre Bogus
981707c9c9 more style adaptations
again following clippy
2016-05-13 22:27:53 +02:00
e0876bb751 Make libimagrt::runtime::Runtime derive Debug 2016-04-20 21:46:02 +02:00
3631817827 libimagrt: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:58 +02:00
52134e6095 Rename: kind() to err_type() 2016-04-19 19:47:23 +02:00
bd4c89af3b Use unused results 2016-04-17 20:48:17 +02:00
b30cde474d Merge pull request #319 from matthiasbeyer/libimagrt/std-hook-register-error-only-debugoutput
Libimagrt/std hook register error only debugoutput
2016-04-06 11:14:44 +02:00
9a094fcd94 Partially revert 7f1a671
Removed the logger initialization, which was not caught by review
somehow.

This patch re-adds the appropriate lines.
2016-04-05 17:48:21 +02:00
4f391d0e04 Spit out the traceback for hook registration errors only in debug mode
This patch is added because this error occours only if there is no
configuration file with the appropriate settings available.

There will still be a warning about hook registration failed, but the
traceback will only be visitible in `--debug` mode.
2016-04-05 16:50:17 +02:00
ee61d079bd Merge pull request #295 from matthiasbeyer/libimagrt/config-for-everyone
Libimagrt/config for everyone
2016-03-26 21:29:40 +01:00