cli MVP
This commit is contained in:
parent
367c19386c
commit
1ea50c50bc
62 changed files with 9982 additions and 608 deletions
|
|
@ -1,14 +1,19 @@
|
|||
//SPDX-License-Identifier: LGPL-3.0-only
|
||||
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
|
||||
export module Nostro:Connector;
|
||||
|
||||
import std;
|
||||
|
||||
namespace Nostro {
|
||||
// Both take an exclusive lock on connectors.lock in the config directory and hold it until the process ends, so
|
||||
// a second nostro process waits (saying so through Note) instead of overwriting the first one's changes.
|
||||
export struct Connector {
|
||||
// Writes every bank's connectors to connectors.json in the config directory: synced to the disk, then
|
||||
// renamed over the old file.
|
||||
static void SaveConnectors();
|
||||
// Reads connectors.json (a missing file is no connectors yet) and refreshes each connector's accounts. A
|
||||
// connector whose refresh fails keeps no accounts and is reported through Note, so the others stay usable.
|
||||
static void LoadConnectors();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue