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

spike commands idea #11

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

404answernotfound
Copy link
Member

@404answernotfound 404answernotfound commented Jan 9, 2025

Because of how the implementation of browsir is done (and intended), profiles appears as commands.

e.g.

browsir personal https://example.com

We don't want to change this behaviour, so this spike serves as proof that we can allow a set of restricted keywords to be checked before browsir profiles and if so, run those commands instead. Thoughts?

@Wabri
Copy link
Member

Wabri commented Jan 13, 2025

Why not check if is a profile first, if not a profile check if is a special command? And to directly run the special command we can use something like a argument redirection like -c:

browsir -c add-shortcut https://example.com

of course if there aren't any add-shortcut profile, and I dont think so, the user can simply run:

browsir add-shortcut https://example.com

is it too overengineer?

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