From c164be29d3435d17830193fcb624935bbe313f1e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 26 Nov 2025 23:04:15 +0100 Subject: [PATCH] ref: Rename taskrc parsing function to parse_rc --- topen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/topen.py b/topen.py index 666f0e1..eeb45eb 100755 --- a/topen.py +++ b/topen.py @@ -12,7 +12,7 @@ You can make use of the open editor and utility functions to find and edit notes, either filling in the required configuration manually or passing around a TConf configuration object containing them all. If choosing the latter, you can read the configuration in part from a `taskrc` file using the utility function -`parse_conf()`. +`parse_rc()`. """ @@ -45,7 +45,7 @@ def main(): """ opts_override = {"task_rc": TConf(0).task_rc} | parse_env() | parse_cli() conf_file = _real_path(opts_override["task_rc"]) - opts: dict = parse_conf(conf_file) | opts_override + opts: dict = parse_rc(conf_file) | opts_override cfg = TConf.from_dict(opts) if not cfg.task_id: @@ -293,7 +293,7 @@ def parse_env() -> dict[str, Any]: return out -def parse_conf(rc_path: Path) -> dict: +def parse_rc(rc_path: Path) -> dict: """Parse taskrc configuration file options. Returns them as a simple dict object.