Skip to content

Adds pull command #21

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

gcavanunez
Copy link

@gcavanunez gcavanunez commented Apr 2, 2025

Adds a way to pull commands from an api and creates them under the a user's local recipes dir

Demo

mise-demo-speedrun.mp4

Notes

We may want to hold off on this guy until we get the saas app uup and running.

Copy link
Member

@mattstauffer mattstauffer left a comment

Choose a reason for hiding this comment

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

Looks great so far!

@gcavanunez gcavanunez marked this pull request as ready for review April 4, 2025 15:08
@gcavanunez gcavanunez requested a review from mattstauffer April 4, 2025 15:09
if (empty($selectedRemoteRecipes)) {
return multiselect(
label: 'Which recipe(s) should I pull?',
options: app(MiseService::class)->allForSelect(),
Copy link
Member

Choose a reason for hiding this comment

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

OK, so there are a few things I have questions about.

How do we handle:

  • Recipes that we already have locally and haven't changed
  • Recipes that we already have locally and have changed
  • Recipes that we have a local one with the same name but it's not the same


private function install($key)
{
info('Installing recipe: ' . $key);
Copy link
Member

Choose a reason for hiding this comment

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

I'm never totally sure about best practices here, but is there any value in us shipping a hash of the file contents? I know people do that, but I'm trying to figure out if there's any way that helps us in this context.

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