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:
|
||||
# ~/.apprise
|
||||
# ~/.apprise.yml
|
||||
# ~/.apprise.yaml
|
||||
# ~/.config/apprise
|
||||
# ~/.config/apprise.yml
|
||||
# ~/.config/apprise.yaml
|
||||
# /etc/apprise
|
||||
# /etc/apprise.yml
|
||||
# /etc/apprise.yaml
|
||||
|
||||
# Also a subdirectory handling allows you to leverage plugins
|
||||
# ~/.apprise/apprise
|
||||
# ~/.apprise/apprise.yml
|
||||
# ~/.apprise/apprise.yaml
|
||||
# ~/.config/apprise/apprise
|
||||
# ~/.config/apprise/apprise.yml
|
||||
# ~/.config/apprise/apprise.yaml
|
||||
# /etc/apprise/apprise
|
||||
# /etc/apprise/apprise.yml
|
||||
# /etc/apprise/apprise.yaml
|
||||
|
||||
# Windows users can store their default configuration files here:
|
||||
# %APPDATA%/Apprise/apprise
|
||||
# %APPDATA%/Apprise/apprise.yml
|
||||
# %APPDATA%/Apprise/apprise.yaml
|
||||
# %LOCALAPPDATA%/Apprise/apprise
|
||||
# %LOCALAPPDATA%/Apprise/apprise.yml
|
||||
# %LOCALAPPDATA%/Apprise/apprise.yaml
|
||||
# %ALLUSERSPROFILE%\Apprise\apprise
|
||||
# %ALLUSERSPROFILE%\Apprise\apprise.yml
|
||||
# %ALLUSERSPROFILE%\Apprise\apprise.yaml
|
||||
# %PROGRAMFILES%\Apprise\apprise
|
||||
# %PROGRAMFILES%\Apprise\apprise.yml
|
||||
# %PROGRAMFILES%\Apprise\apprise.yaml
|
||||
# %COMMONPROGRAMFILES%\Apprise\apprise
|
||||
# %COMMONPROGRAMFILES%\Apprise\apprise.yml
|
||||
# %COMMONPROGRAMFILES%\Apprise\apprise.yaml
|
||||
|
||||
# If you loaded one of those files, your command line gets really easy:
|
||||
apprise -vv -t 'my title' -b 'my notification body'
|
||||
|
|
|
@ -68,20 +68,26 @@ DEFAULT_CONFIG_PATHS = (
|
|||
# Legacy Path Support
|
||||
'~/.apprise',
|
||||
'~/.apprise.yml',
|
||||
'~/.apprise.yaml',
|
||||
'~/.config/apprise',
|
||||
'~/.config/apprise.yml',
|
||||
'~/.config/apprise.yaml',
|
||||
|
||||
# Plugin Support Extended Directory Search Paths
|
||||
'~/.apprise/apprise',
|
||||
'~/.apprise/apprise.yml',
|
||||
'~/.apprise/apprise.yaml',
|
||||
'~/.config/apprise/apprise',
|
||||
'~/.config/apprise/apprise.yml',
|
||||
'~/.config/apprise/apprise.yaml',
|
||||
|
||||
# Global Configuration Support
|
||||
'/etc/apprise',
|
||||
'/etc/apprise.yml',
|
||||
'/etc/apprise.yaml',
|
||||
'/etc/apprise/apprise',
|
||||
'/etc/apprise/apprise.yml',
|
||||
'/etc/apprise/apprise.yaml',
|
||||
)
|
||||
|
||||
# Define our paths to search for plugins
|
||||
|
@ -99,8 +105,10 @@ if platform.system() == 'Windows':
|
|||
DEFAULT_CONFIG_PATHS = (
|
||||
expandvars('%APPDATA%\\Apprise\\apprise'),
|
||||
expandvars('%APPDATA%\\Apprise\\apprise.yml'),
|
||||
expandvars('%APPDATA%\\Apprise\\apprise.yaml'),
|
||||
expandvars('%LOCALAPPDATA%\\Apprise\\apprise'),
|
||||
expandvars('%LOCALAPPDATA%\\Apprise\\apprise.yml'),
|
||||
expandvars('%LOCALAPPDATA%\\Apprise\\apprise.yaml'),
|
||||
|
||||
#
|
||||
# Global Support
|
||||
|
@ -109,14 +117,17 @@ if platform.system() == 'Windows':
|
|||
# C:\ProgramData\Apprise\
|
||||
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise'),
|
||||
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise.yml'),
|
||||
expandvars('%ALLUSERSPROFILE%\\Apprise\\apprise.yaml'),
|
||||
|
||||
# C:\Program Files\Apprise
|
||||
expandvars('%PROGRAMFILES%\\Apprise\\apprise'),
|
||||
expandvars('%PROGRAMFILES%\\Apprise\\apprise.yml'),
|
||||
expandvars('%PROGRAMFILES%\\Apprise\\apprise.yaml'),
|
||||
|
||||
# C:\Program Files\Common Files
|
||||
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise'),
|
||||
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise.yml'),
|
||||
expandvars('%COMMONPROGRAMFILES%\\Apprise\\apprise.yaml'),
|
||||
)
|
||||
|
||||
# Default Plugin Search Path for Windows Users
|
||||
|
|
|
@ -190,18 +190,24 @@ in the following local locations for configuration files and loads them:
|
|||
|
||||
~/.apprise
|
||||
~/.apprise.yml
|
||||
~/.apprise.yaml
|
||||
~/.config/apprise
|
||||
~/.config/apprise.yml
|
||||
~/.config/apprise.yaml
|
||||
|
||||
~/.apprise/apprise
|
||||
~/.apprise/apprise.yml
|
||||
~/.apprise/apprise.yaml
|
||||
~/.config/apprise/apprise
|
||||
~/.config/apprise/apprise.yml
|
||||
~/.config/apprise/apprise.yaml
|
||||
|
||||
/etc/apprise
|
||||
/etc/apprise.yml
|
||||
/etc/apprise.yaml
|
||||
/etc/apprise/apprise
|
||||
/etc/apprise/apprise.yml
|
||||
/etc/apprise/apprise.yaml
|
||||
|
||||
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**
|
||||
|
|
Loading…
Reference in New Issue