You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add --config flag to override config.ini location (#164)
Add an optional `--config PATH` flag (long-form only) to every
TM1-connecting command (run, build, tasks …, resume). It points a single
invocation at an arbitrary config.ini (TM1 connection parameters),
enabling a read-only config.ini shared with other tm1py utilities.
Resolution precedence (highest wins): --config > RUSHTI_DIR > legacy CWD
> config/. The resolved path is threaded explicitly as config_path into
the TM1 connection layer (connect_to_tm1_instance, setup_tm1_services)
rather than mutating the module-level CONFIG global, which is demoted to
the no-flag default. The execution.py `from rushti.cli import CONFIG`
fallback is removed in favour of a required, explicit argument.
--config relocates only config.ini; settings.ini keeps --settings and
logging_config.ini keeps its own resolution. A missing path fails fast
(exit 1, clean message, no traceback). Not added to stats/db, which open
no TM1 connection. No behavioural change when the flag is absent.
See docs/adr/0003-config-ini-location-resolution.md.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/advanced/cli-reference.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ rushti --tasks FILE [options] # 'run' is the default command
55
55
|`--retries`|`-r`| INT |`0`| Retry count for failed TI executions. Uses exponential backoff. |
56
56
|`--result`|`-o`| PATH |*(empty)*| Output CSV path for execution summary. Omit to skip CSV creation. |
57
57
|`--settings`|`-s`| PATH | auto | Path to `settings.ini`. Auto-discovered if omitted. |
58
+
|`--config`|| PATH | auto | Path to `config.ini` (TM1 connection parameters). Overrides `RUSHTI_DIR`/default location. Relocates **only**`config.ini`; `settings.ini` and `logging_config.ini` keep their own resolution. A missing path fails fast (exit 1, no traceback). |
58
59
|`--mode`|`-m`| CHOICE |`norm`| Execution mode: `norm` or `opt`. **Ignored for file sources** (`--tasks`), where mode is auto-detected from file content. **Required for cube reads** (`--tm1-instance`) when the workflow uses explicit `predecessors` — pass `--mode opt`, otherwise the cube is read in `norm` mode and predecessors are dropped. See [TM1 integration → Choosing the mode for cube reads](../features/tm1-integration.md#choosing-the-mode-for-cube-reads). |
59
60
|`--exclusive`|`-x`| FLAG |`false`| Enable exclusive mode. Waits for other RushTI sessions to finish. |
60
61
|`--force`|`-f`| FLAG |`false`| Bypass exclusive mode checks and run immediately. |
Both the dashboard and the DAG are sourced from the stats database — not from the live taskfile or TM1 cube definition. Editing a workflow definition without re-running it will not update either visualization. Re-run the workflow to refresh.
0 commit comments