mirror of https://github.com/caronc/apprise
Support both .yaml and .yml config files via CLI (#1073)
parent
26d8e45683
commit
645baeb55c
11
README.md
11
README.md
|
@ -233,30 +233,41 @@ No one wants to put their credentials out for everyone to see on the command lin
|
||||||
# configuration files (if present) from:
|
# configuration files (if present) from:
|
||||||
# ~/.apprise
|
# ~/.apprise
|
||||||
# ~/.apprise.yml
|
# ~/.apprise.yml
|
||||||
|
# ~/.apprise.yaml
|
||||||
# ~/.config/apprise
|
# ~/.config/apprise
|
||||||
# ~/.config/apprise.yml
|
# ~/.config/apprise.yml
|
||||||
|
# ~/.config/apprise.yaml
|
||||||
# /etc/apprise
|
# /etc/apprise
|
||||||
# /etc/apprise.yml
|
# /etc/apprise.yml
|
||||||
|
# /etc/apprise.yaml
|
||||||
|
|
||||||
# Also a subdirectory handling allows you to leverage plugins
|
# Also a subdirectory handling allows you to leverage plugins
|
||||||
# ~/.apprise/apprise
|
# ~/.apprise/apprise
|
||||||
# ~/.apprise/apprise.yml
|
# ~/.apprise/apprise.yml
|
||||||
|
# ~/.apprise/apprise.yaml
|
||||||
# ~/.config/apprise/apprise
|
# ~/.config/apprise/apprise
|
||||||
# ~/.config/apprise/apprise.yml
|
# ~/.config/apprise/apprise.yml
|
||||||
|
# ~/.config/apprise/apprise.yaml
|
||||||
# /etc/apprise/apprise
|
# /etc/apprise/apprise
|
||||||
# /etc/apprise/apprise.yml
|
# /etc/apprise/apprise.yml
|
||||||
|
# /etc/apprise/apprise.yaml
|
||||||
|
|
||||||
# Windows users can store their default configuration files here:
|
# Windows users can store their default configuration files here:
|
||||||
# %APPDATA%/Apprise/apprise
|
# %APPDATA%/Apprise/apprise
|
||||||
# %APPDATA%/Apprise/apprise.yml
|
# %APPDATA%/Apprise/apprise.yml
|
||||||
|
# %APPDATA%/Apprise/apprise.yaml
|
||||||
# %LOCALAPPDATA%/Apprise/apprise
|
# %LOCALAPPDATA%/Apprise/apprise
|
||||||
# %LOCALAPPDATA%/Apprise/apprise.yml
|
# %LOCALAPPDATA%/Apprise/apprise.yml
|
||||||
|
# %LOCALAPPDATA%/Apprise/apprise.yaml
|
||||||
# %ALLUSERSPROFILE%\Apprise\apprise
|
# %ALLUSERSPROFILE%\Apprise\apprise
|
||||||
# %ALLUSERSPROFILE%\Apprise\apprise.yml
|
# %ALLUSERSPROFILE%\Apprise\apprise.yml
|
||||||
|
# %ALLUSERSPROFILE%\Apprise\apprise.yaml
|
||||||
# %PROGRAMFILES%\Apprise\apprise
|
# %PROGRAMFILES%\Apprise\apprise
|
||||||
# %PROGRAMFILES%\Apprise\apprise.yml
|
# %PROGRAMFILES%\Apprise\apprise.yml
|
||||||
|
# %PROGRAMFILES%\Apprise\apprise.yaml
|
||||||
# %COMMONPROGRAMFILES%\Apprise\apprise
|
# %COMMONPROGRAMFILES%\Apprise\apprise
|
||||||
# %COMMONPROGRAMFILES%\Apprise\apprise.yml
|
# %COMMONPROGRAMFILES%\Apprise\apprise.yml
|
||||||
|
# %COMMONPROGRAMFILES%\Apprise\apprise.yaml
|
||||||
|
|
||||||
# If you loaded one of those files, your command line gets really easy:
|
# If you loaded one of those files, your command line gets really easy:
|
||||||
apprise -vv -t 'my title' -b 'my notification body'
|
apprise -vv -t 'my title' -b 'my notification body'
|
||||||
|
|
|
@ -68,20 +68,26 @@ DEFAULT_CONFIG_PATHS = (
|
||||||
# Legacy Path Support
|
# Legacy Path Support
|
||||||
'~/.apprise',
|
'~/.apprise',
|
||||||
'~/.apprise.yml',
|
'~/.apprise.yml',
|
||||||
|
'~/.apprise.yaml',
|
||||||
'~/.config/apprise',
|
'~/.config/apprise',
|
||||||
'~/.config/apprise.yml',
|
'~/.config/apprise.yml',
|
||||||
|
'~/.config/apprise.yaml',
|
||||||
|
|
||||||
# Plugin Support Extended Directory Search Paths
|
# Plugin Support Extended Directory Search Paths
|
||||||
'~/.apprise/apprise',
|
'~/.apprise/apprise',
|
||||||
'~/.apprise/apprise.yml',
|
'~/.apprise/apprise.yml',
|
||||||
|
'~/.apprise/apprise.yaml',
|
||||||
'~/.config/apprise/apprise',
|
'~/.config/apprise/apprise',
|
||||||
'~/.config/apprise/apprise.yml',
|
'~/.config/apprise/apprise.yml',
|
||||||
|
'~/.config/apprise/apprise.yaml',
|
||||||
|
|
||||||
# Global Configuration Support
|
# Global Configuration Support
|
||||||
'/etc/apprise',
|
'/etc/apprise',
|
||||||
'/etc/apprise.yml',
|
'/etc/apprise.yml',
|
||||||
|
'/etc/apprise.yaml',
|
||||||
'/etc/apprise/apprise',
|
'/etc/apprise/apprise',
|
||||||
'/etc/apprise/apprise.yml',
|
'/etc/apprise/apprise.yml',
|
||||||
|
'/etc/apprise/apprise.yaml',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Define our paths to search for plugins
|
# Define our paths to search for plugins
|
||||||
|
@ -99,8 +105,10 @@ if platform.system() == 'Windows':
|
||||||
DEFAULT_CONFIG_PATHS = (
|
DEFAULT_CONFIG_PATHS = (
|
||||||
expandvars('%APPDATA%\\Apprise\\apprise'),
|
expandvars('%APPDATA%\\Apprise\\apprise'),
|
||||||
expandvars('%APPDATA%\\Apprise\\apprise.yml'),
|
expandvars('%APPDATA%\\Apprise\\apprise.yml'),
|
||||||
|
expandvars('%APPDATA%\\Apprise\\apprise.yaml'),
|
||||||
expandvars('%LOCALAPPDATA%\\Apprise\\apprise'),
|
expandvars('%LOCALAPPDATA%\\Apprise\\apprise'),
|
||||||
expandvars('%LOCALAPPDATA%\\Apprise\\apprise.yml'),
|
expandvars('%LOCALAPPDATA%\\Apprise\\apprise.yml'),
|
||||||
|
expandvars('%LOCALAPPDATA%\\Apprise\\apprise.yaml'),
|
||||||
|
|
||||||
#
|
#
|
||||||
# Global Support
|
# Global Support
|
||||||
|
@ -109,14 +117,17 @@ if platform.system() == 'Windows':
|
||||||
# C:\ProgramData\Apprise\
|
# C:\ProgramData\Apprise\
|
||||||
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise'),
|
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise'),
|
||||||
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise.yml'),
|
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise.yml'),
|
||||||
|
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise.yaml'),
|
||||||
|
|
||||||
# C:\Program Files\Apprise
|
# C:\Program Files\Apprise
|
||||||
expandvars('%PROGRAMFILES%\\Apprise\\apprise'),
|
expandvars('%PROGRAMFILES%\\Apprise\\apprise'),
|
||||||
expandvars('%PROGRAMFILES%\\Apprise\\apprise.yml'),
|
expandvars('%PROGRAMFILES%\\Apprise\\apprise.yml'),
|
||||||
|
expandvars('%PROGRAMFILES%\\Apprise\\apprise.yaml'),
|
||||||
|
|
||||||
# C:\Program Files\Common Files
|
# C:\Program Files\Common Files
|
||||||
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise'),
|
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise'),
|
||||||
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise.yml'),
|
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise.yml'),
|
||||||
|
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise.yaml'),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Default Plugin Search Path for Windows Users
|
# Default Plugin Search Path for Windows Users
|
||||||
|
|
|
@ -190,18 +190,24 @@ in the following local locations for configuration files and loads them:
|
||||||
|
|
||||||
~/.apprise
|
~/.apprise
|
||||||
~/.apprise.yml
|
~/.apprise.yml
|
||||||
|
~/.apprise.yaml
|
||||||
~/.config/apprise
|
~/.config/apprise
|
||||||
~/.config/apprise.yml
|
~/.config/apprise.yml
|
||||||
|
~/.config/apprise.yaml
|
||||||
|
|
||||||
~/.apprise/apprise
|
~/.apprise/apprise
|
||||||
~/.apprise/apprise.yml
|
~/.apprise/apprise.yml
|
||||||
|
~/.apprise/apprise.yaml
|
||||||
~/.config/apprise/apprise
|
~/.config/apprise/apprise
|
||||||
~/.config/apprise/apprise.yml
|
~/.config/apprise/apprise.yml
|
||||||
|
~/.config/apprise/apprise.yaml
|
||||||
|
|
||||||
/etc/apprise
|
/etc/apprise
|
||||||
/etc/apprise.yml
|
/etc/apprise.yml
|
||||||
|
/etc/apprise.yaml
|
||||||
/etc/apprise/apprise
|
/etc/apprise/apprise
|
||||||
/etc/apprise/apprise.yml
|
/etc/apprise/apprise.yml
|
||||||
|
/etc/apprise/apprise.yaml
|
||||||
|
|
||||||
If a default configuration file is referenced in any way by the **apprise**
|
If a default configuration file is referenced in any way by the **apprise**
|
||||||
tool, you no longer need to provide it a Service URL. Usage of the **apprise**
|
tool, you no longer need to provide it a Service URL. Usage of the **apprise**
|
||||||
|
|
Loading…
Reference in New Issue