diff options
| author | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-04-23 18:16:57 +0200 |
| commit | 0232b991cd7d8e3a2114ea30e4591dd3e7b65c36 (patch) | |
| tree | 94730e7594fd09ae1fa820391ce311f6daf13905 /src/zen/authutils.h | |
| parent | Fix forward declaration order for s_GotSigWinch and SigWinchHandler (diff) | |
| parent | trace: declare Region event name fields as AnsiString (#1012) (diff) | |
| download | archived-zen-sb/zen-help.tar.xz archived-zen-sb/zen-help.zip | |
Merge branch 'main' into sb/zen-helpsb/zen-help
- Combine HelpCommand (this branch) with HistoryCommand (main) in zen CLI dispatcher
- Keep filter-aware TuiPickOne rewrite; adopt main's ASCII arrow glyphs in doc comment
Diffstat (limited to 'src/zen/authutils.h')
| -rw-r--r-- | src/zen/authutils.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/zen/authutils.h b/src/zen/authutils.h index fa9670b3f..fa353ab04 100644 --- a/src/zen/authutils.h +++ b/src/zen/authutils.h @@ -3,7 +3,6 @@ #pragma once #include "zen.h" -#include "zenutil/authutils.h" namespace zen { @@ -45,6 +44,15 @@ struct AuthCommandLineOptions bool Quiet, bool Hidden, bool Verbose); + +private: + void CreateAuthMgr(cxxopts::Options& Ops, + const std::filesystem::path& SystemRootDir, + std::unique_ptr<AuthMgr>& InOutAuth, + bool Quiet, + bool Verbose); + + void LoadOrCreateMachineKey(const std::filesystem::path& AuthDir, bool Quiet); }; std::string ReadAccessTokenFromJsonFile(const std::filesystem::path& Path); |