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

Make flags easier to maintain #482

Merged
merged 1 commit into from
Oct 22, 2023
Merged

Conversation

ocitrev
Copy link
Contributor

@ocitrev ocitrev commented Oct 12, 2023

This is a suggestion for easier flag maintenance.
No new flags were added.

Copy link

@mikkelly-mi mikkelly-mi left a comment

Choose a reason for hiding this comment

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

Clean code approach..

@guysoft guysoft merged commit 1d136a1 into guysoft:devel Oct 22, 2023
@guysoft
Copy link
Owner

guysoft commented Oct 22, 2023

Thanks for tiding up!

@ThomasKramps
Copy link

ThomasKramps commented Oct 29, 2023

Why not also put the link --app=$(/home/pi/scripts/get_url) to the flags?

If you have a look into get_url, it is basically doing the same as --app=$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g"), so the latter may be summarized to point to get_url as well.

@guysoft
Copy link
Owner

guysoft commented Oct 29, 2023

Because it makes sense to encapsulate the logic how to get the url from the script. It makes it easier to change the browser script, or change the way you get the url.

@ThomasKramps
Copy link

@ocitrev

I don't know how to use github… Thank you :)

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.

4 participants