Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restart feature #37

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Add restart feature #37

merged 4 commits into from
Oct 1, 2024

Conversation

fpankretic
Copy link
Contributor

#35

@fpankretic
Copy link
Contributor Author

No test were added, USAGE.md wasn't updated. If needed I can update PR with those or anything else needed.

Copy link
Owner

@bmwant bmwant left a comment

Choose a reason for hiding this comment

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

Looks fine, please add tests (at least for cli invocation with a new command) and you can update readme as well.

.gitignore Outdated Show resolved Hide resolved
hapless/cli.py Outdated Show resolved Hide resolved
@@ -340,3 +357,17 @@ def signal(self, hap: Hap, sig: signal.Signals):
f"{config.ICON_INFO} Cannot send signal to the inactive hap",
style=f"{config.COLOR_ERROR} bold",
)

def restart(self, hap: Hap):
hid, name, cmd = hap.hid, hap.name, hap.cmd
Copy link
Owner

Choose a reason for hiding this comment

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

maybe name should contain -restarted suffix or something to have some hint for the user? wdyt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, I would maybe personally prefer it without a suffix. If needed, some flag like --suffix or --no-suffix can be added.

hapless/main.py Outdated Show resolved Hide resolved
hapless/main.py Outdated Show resolved Hide resolved
@bmwant
Copy link
Owner

bmwant commented Oct 1, 2024

@fpankretic thanks for your contribution!

@bmwant bmwant merged commit 60490bc into bmwant:main Oct 1, 2024
7 of 8 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.

2 participants