Skip to content

refactor: -f/--config is the single configuration flag - #134

Merged
gavinying merged 1 commit into
v2from
config-flags-simplify
Nov 12, 2026
Merged

gavinying merged 1 commit into
v2from
config-flags-simplify

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the --tm alias and the --thing-model/--thing-description/--td kind-assertion flags: -f/--config detects v1 CSV, WoT TM/TD JSON and modiohub: Workspace references from the content, so one flag covers every configuration source. Docs, examples and the ModioHub web commands all speak --config already; this removes the confusing alternatives (maintainer decision 2026-11-12, follow-up to POLL-05 / feat: restore v1 CSV configurations behind content detection #132).
  • The removed spellings fail as unrecognized arguments, covered by a CLI test.
  • load_devices keeps its optional kind assertion as an internal/test API; usage errors keep the one-line exit-code-2 style; --full-read still rejects CSV configurations.

Verification

  • make check passes; pytest tests -m "not integration": 237 passed, 58 deselected.
  • End-to-end against local modsim 2.0.0a8: --config examples/modsim.csv and -f examples/modsim.tm.json both exit 0 with byte-identical 37-point snapshots; --tm is rejected with "unrecognized arguments".

Remove the --tm alias and the --thing-model/--thing-description
kind-assertion flags added with the CSV restoration: --config detects
v1 CSV, WoT TM/TD JSON and modiohub: Workspace references from the
content, so one flag covers every source and docs, examples and web
commands all speak --config. The removed spellings are rejected as
unrecognized arguments; load_devices keeps its optional kind assertion
as an internal API. Usage errors keep the one-line exit-code-2 style;
--full-read still rejects CSV configurations.
@gavinying
gavinying merged commit 95db77b into v2 Nov 12, 2026
6 checks passed
@gavinying
gavinying deleted the config-flags-simplify branch November 12, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant