Skip to content

feat: pretty printing#5

Merged
onefloid merged 1 commit into
mainfrom
feat/pretty-printing
Jul 15, 2026
Merged

feat: pretty printing#5
onefloid merged 1 commit into
mainfrom
feat/pretty-printing

Conversation

@onefloid

@onefloid onefloid commented Jun 8, 2025

Copy link
Copy Markdown
Owner

This PR contains:

  • Refactoring of exists commands
  • Pretty prints if --output--raw is not set

Open tasks before Merge

  • Update readme
  • Update all tests

Issues
Closes #4

@onefloid
onefloid marked this pull request as ready for review September 15, 2025 10:24
`exists` commands (cube, dimension, process, subset, view) now print
✅/❌ by default instead of raw True/False. Pass --output-raw to get
the old raw boolean back, e.g. for scripting.

Consolidated into a shared execute_exists() helper in the new
tm1cli/utils/generic.py.

BREAKING CHANGE: default stdout of `tm1cli <resource> exists ...` is
no longer "True"/"False" — scripts relying on that must add
--output-raw.

Closes #4.
@onefloid
onefloid force-pushed the feat/pretty-printing branch from 56f4382 to ff255ad Compare July 15, 2026 15:40
@onefloid
onefloid merged commit 25948f1 into main Jul 15, 2026
2 checks passed
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.

Following The DRY Principle

2 participants