mirror of
https://github.com/vale981/outlook-oauth-hack
synced 2025-03-04 08:31:38 -05:00
support extracting config values
This commit is contained in:
parent
c533eb92d7
commit
220d76c48f
2 changed files with 6 additions and 0 deletions
|
@ -22,3 +22,8 @@ def get_config(profile):
|
|||
AccessTokenFileName = cache_path / "imap_smtp_access_token",
|
||||
Authority = config_data["Authority"] or None,
|
||||
Timeout = config_data.get("Timeout", 60 * 60))
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
sys.exit(f"Usage: {sys.argv[0]} <profile> <key>")
|
||||
print(get_config(sys.argv[1]).__dict__[sys.argv[2]])
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
install -Dm755 ${./get_token.py} $out/bin/o365-get-token
|
||||
install -Dm755 ${./refresh_token.py} $out/bin/o365-refresh-token
|
||||
install -Dm755 ${./config.py} $out/bin/config.py
|
||||
install -Dm755 ${./config.py} $out/bin/o365-get-config
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue