|
OmniStacksStaticModules 2.0.0
|
Classes | |
| struct | Runtime |
| 一次进程调用共享的根目录、数据库路径和默认 Inbox 工作区。 More... | |
Enumerations | |
| enum class | ExitCode : int { ok = 0 , usage = 1 , failed = 2 } |
Functions | |
| std::expected< std::monostate, interface_log::LogError > | initialize_log (const std::filesystem::path &path) |
| 初始化 bqlog,并临时把 stdout 指向 stderr。 | |
| fs::path | executable_directory (const char *argv0) |
| 解析 argv[0] 的绝对目录;weakly_canonical 失败时回退到 absolute。 | |
| fs::path | find_source_root (fs::path start) |
| 源码运行时向上查找 CMakeLists.txt,作为项目根目录。 | |
| bool | environment_flag (std::string_view name, bool fallback) |
| Alfred 布尔变量的宽容解析。 | |
| std::optional< std::string > | ensure_runtime_layout (const fs::path &root) |
| 首次运行补齐 data/log 和三个空 JSON。 | |
| Runtime | discover_runtime (const char *argv0) |
| 发现运行根目录、workflow 目录和默认 Inbox。 | |
| void | print_usage () |
| 打印完整 CLI 帮助;仅用于终端调试,不进入 Alfred Script Filter 输出。 | |
| void | print_task (const TaskManager::TaskRecord &task) |
| 任务列表行的稳定 TSV 格式,便于 awk/人工调试。 | |
| int | run_sync (const Runtime &runtime, const fs::path &path) |
| CLI sync:把新工作区交给 ProjectSync,并输出项目/清单统计。 | |
| int | run_add (const Runtime &runtime, const std::string &target, const std::string &payload, const std::vector< std::string > &values) |
| CLI add:向项目或清单创建任务。 | |
| int | run_inbox (const Runtime &runtime, const std::string &payload, const std::vector< std::string > &values) |
| CLI inbox:在默认/显式工作区创建收件箱任务。 | |
| std::vector< std::string > | arguments (int argc, char *argv[], int start) |
| 从 argv[start..] 复制额外参数;start 之后的参数所有权仍属于进程。 | |
| std::optional< std::string > | option_value (const std::vector< std::string > &values, std::string_view option) |
| 返回第一个 --option value 的值;缺失返回 nullopt。 | |
| bool | has_option (const std::vector< std::string > &values, std::string_view option) |
| 检查布尔开关参数是否存在,例如 --dry-run、--todo-only。 | |
| int | run_boards (const Runtime &runtime, std::string query) |
| CLI boards:按显示名/ID 过滤项目与清单。 | |
| int | run_tasks (const Runtime &runtime, const std::vector< std::string > &values) |
| CLI tasks:把 –board/–query/–todo-only 映射为过滤条件。 | |
| int | run_week (const Runtime &runtime, std::optional< std::string > anchor) |
| CLI week:返回指定锚点周的未完成截止任务。 | |
| int | run_get (const Runtime &runtime, const std::string &id) |
| CLI get:输出单个任务的 Stacks 兼容字段。 | |
| int | run_edit (const Runtime &runtime, const std::string &id, const std::vector< std::string > &values) |
| CLI edit:构造三态 TaskPatch 并写回任务。 | |
| template<typename Result> | |
| int | print_task_result (const std::string &command, const Result &result) |
| 统一打印各种 expected 任务操作结果。 | |
| ReminderSync::Provider | parse_provider_or_default (const std::string &value, bool *valid) |
| 将 provider 文本解析为枚举;invalid 通过输出参数报告,避免抛异常。 | |
| int | run_sync_reminder (const Runtime &runtime, const std::string &id, const std::string &provider_text, bool dry_run) |
| CLI sync-reminder:读取任务快照并同步到指定外部应用。 | |
| int | run_sync_week (const Runtime &runtime, const std::string &provider_text, bool dry_run) |
| CLI sync-week:逐个同步本周截止任务。 | |
| int | run_ui (const Runtime &runtime, const std::string &query) |
| CLI ui:把查询交给 WorkflowUI。 | |
| int | run_action (const Runtime &runtime, const std::string &token) |
| CLI action:执行 Alfred 选中的 action token。 | |
|
strong |
| std::vector< std::string > anonymous_namespace{main.cpp}::arguments | ( | int | argc, |
| char * | argv[], | ||
| int | start ) |
| Runtime anonymous_namespace{main.cpp}::discover_runtime | ( | const char * | argv0 | ) |
| std::optional< std::string > anonymous_namespace{main.cpp}::ensure_runtime_layout | ( | const fs::path & | root | ) |
| bool anonymous_namespace{main.cpp}::environment_flag | ( | std::string_view | name, |
| bool | fallback ) |
| fs::path anonymous_namespace{main.cpp}::executable_directory | ( | const char * | argv0 | ) |
| fs::path anonymous_namespace{main.cpp}::find_source_root | ( | fs::path | start | ) |
| bool anonymous_namespace{main.cpp}::has_option | ( | const std::vector< std::string > & | values, |
| std::string_view | option ) |
| std::expected< std::monostate, interface_log::LogError > anonymous_namespace{main.cpp}::initialize_log | ( | const std::filesystem::path & | path | ) |
| std::optional< std::string > anonymous_namespace{main.cpp}::option_value | ( | const std::vector< std::string > & | values, |
| std::string_view | option ) |
| ReminderSync::Provider anonymous_namespace{main.cpp}::parse_provider_or_default | ( | const std::string & | value, |
| bool * | valid ) |
| void anonymous_namespace{main.cpp}::print_task | ( | const TaskManager::TaskRecord & | task | ) |
| int anonymous_namespace{main.cpp}::print_task_result | ( | const std::string & | command, |
| const Result & | result ) |
| void anonymous_namespace{main.cpp}::print_usage | ( | ) |
| int anonymous_namespace{main.cpp}::run_action | ( | const Runtime & | runtime, |
| const std::string & | token ) |
CLI action:执行 Alfred 选中的 action token。
| runtime | 当前运行上下文。 |
| token | WorkflowUI 生成的稳定 token。 |
Definition at line 630 of file main.cpp.
| int anonymous_namespace{main.cpp}::run_add | ( | const Runtime & | runtime, |
| const std::string & | target, | ||
| const std::string & | payload, | ||
| const std::vector< std::string > & | values ) |
| int anonymous_namespace{main.cpp}::run_boards | ( | const Runtime & | runtime, |
| std::string | query ) |
| int anonymous_namespace{main.cpp}::run_edit | ( | const Runtime & | runtime, |
| const std::string & | id, | ||
| const std::vector< std::string > & | values ) |
| int anonymous_namespace{main.cpp}::run_get | ( | const Runtime & | runtime, |
| const std::string & | id ) |
| int anonymous_namespace{main.cpp}::run_inbox | ( | const Runtime & | runtime, |
| const std::string & | payload, | ||
| const std::vector< std::string > & | values ) |
| int anonymous_namespace{main.cpp}::run_sync | ( | const Runtime & | runtime, |
| const fs::path & | path ) |
| int anonymous_namespace{main.cpp}::run_sync_reminder | ( | const Runtime & | runtime, |
| const std::string & | id, | ||
| const std::string & | provider_text, | ||
| bool | dry_run ) |
| int anonymous_namespace{main.cpp}::run_sync_week | ( | const Runtime & | runtime, |
| const std::string & | provider_text, | ||
| bool | dry_run ) |
| int anonymous_namespace{main.cpp}::run_tasks | ( | const Runtime & | runtime, |
| const std::vector< std::string > & | values ) |
| int anonymous_namespace{main.cpp}::run_ui | ( | const Runtime & | runtime, |
| const std::string & | query ) |
| int anonymous_namespace{main.cpp}::run_week | ( | const Runtime & | runtime, |
| std::optional< std::string > | anchor ) |