Skip to content

Implement label printer#39

Merged
DivineThreepwood merged 3 commits into
devfrom
feature/label-printer
Oct 12, 2021
Merged

Implement label printer#39
DivineThreepwood merged 3 commits into
devfrom
feature/label-printer

Conversation

@DivineThreepwood
Copy link
Copy Markdown
Member

📜 Description

Changes proposed in this pull request:

  • implement label printer that helps to resolve unit ids in bash scripts.

📸 Example

Help screen:

co-query-label
At least one id or alias has to be provided!

Usage:     bco-id-to-label [options] -- [UNIT_ID / UNIT_ALIAS]

Example:   "+APP_NAME+" ColorableLight-8
           "+APP_NAME+" 844a5b35-4b9c-4db2-9d22-4842db77bc95
           bco-query -v colorablelight-12

Print:     ${LABEL} @ ${LOCATION}

Example call:

# bco-query-label a27ba29b-6949-417a-8090-13354173357b
Regal Lampe @ Flur [ /location-5/location-12/colorablelight/colorablelight-8/ ]

Copy link
Copy Markdown
Contributor

@pLeminoq pLeminoq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comments to the code should be addressed and maybe also the automatic comments made by git.

@DivineThreepwood DivineThreepwood merged commit 9d05b7f into dev Oct 12, 2021
@DivineThreepwood DivineThreepwood deleted the feature/label-printer branch October 12, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants