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 new command, compile, that makes a snapshot #166

Merged
merged 3 commits into from
Jun 14, 2022
Merged

Conversation

erikcorry
Copy link
Member

Next step will be changing "jag run" so it can take a precompiled snapshot file.
Then adding other utilities that can use the snapshot file.

@erikcorry erikcorry requested a review from floitsch June 13, 2022 09:30
Copy link
Member

@floitsch floitsch left a comment

Choose a reason for hiding this comment

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

LGTM.

"can be run on a Jaguar device as a new program. The snapshot also\n" +
"contains debug information that can be used by host-side tools.",
Args: cobra.ExactArgs(1),
SilenceUsage: true,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add:
Hidden: true,
so that it's not in the help.

if err != nil {
return err
}
snapshot := filepath.Join(snapshotsCache, device.ID+".snapshot")
Copy link
Member

Choose a reason for hiding this comment

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

As discussed, eventually this should become the application ID.

@erikcorry erikcorry merged commit 58e7f7c into main Jun 14, 2022
@erikcorry erikcorry deleted the compile-command branch June 14, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants