Chris Smith
39ba4c7707
Move Yaml utils to com.dmdirc.util.io.yaml bundle.
Issue #750
преди 7 години
Chris Smith
4c35da850d
Update copyright.
преди 7 години
Chris Smith
d15111ddd3
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
преди 7 години
Shane Mc Cormack
9f3fcd1b59
2015!
преди 9 години
Chris Smith
6aa487bd6c
Make AutoCommand use AutoValue.
преди 9 години
Chris Smith
8665a0f8e7
Add BaseYamlStore.
This does the reading/writing logic that's common to the other
stores.
преди 9 години
Chris Smith
263edc78ed
Add slightly nicer Yaml asList method.
This handles applying a function to each item to convert it to
the desired type, removing a tiny bit of duplication.
преди 9 години
Greg Holmes
8625562eaf
Switch to j8 Optional.
преди 9 години
Chris Smith
d75a119c2b
Add YAML store for auto commands.
Change-Id: Ice4334772007337164a2fa3a21037bc168f86675
Reviewed-on: http://gerrit.dmdirc.com/3751
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 9 години
Chris Smith
89474b1ee8
Pass a file into YamlAliasStore.
This allows it to be used to read other files, such as bundled
defaults.
Change-Id: I1db09ccf6e8048e00e8c73da4962f68c8bb8fb85
Reviewed-on: http://gerrit.dmdirc.com/3555
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
преди 10 години
Chris Smith
13c09d7b10
Add a factory for creating aliases
Also statically import precondition methods randomly.
Depends-On: I49ec46315f1366d27c12d1b4cc2ac92cd479d46d
Change-Id: I2285d5b886d49841c3e5e6645da14a1c880e6745
Reviewed-on: http://gerrit.dmdirc.com/3535
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Chris Smith
61f974b17d
Hook aliases in Main, for now.
Change-Id: Ic51f6ca303a77cf0510780ba043402105381c04c
Reviewed-on: http://gerrit.dmdirc.com/3521
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години
Chris Smith
c2edb71dc6
Add a store that reads/writes aliases.
Change-Id: I24afd60eecf5d77e8ecaf23de584243806df8fdd
Reviewed-on: http://gerrit.dmdirc.com/3519
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
преди 10 години