-
Notifications
You must be signed in to change notification settings - Fork 16
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
meadow project * commands #560
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CartBlanche
commented
May 15, 2024
@@ -133,4 +134,32 @@ internal static string SanitizeMeadowFilename(string fileName) | |||
|
|||
return meadowFileName!.Replace(Path.DirectorySeparatorChar, '/'); | |||
} | |||
|
|||
// Method to run a command and return the output as a list of strings | |||
public async static Task<List<string>> RunDotNetCommand(string command, string arguments, CancellationToken cancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianstevens, @jorgedevs, @ctacke I've put this in here for now. Thoughts on what's your preferred way to have a centralised simple Process
command, that we can re-use?
CartBlanche
force-pushed
the
dominique-TemplateWizard
branch
from
May 22, 2024 09:12
25934e2
to
2015d73
Compare
stevenkuhn
reviewed
May 22, 2024
CartBlanche
force-pushed
the
dominique-TemplateWizard
branch
from
May 28, 2024 12:17
5e52093
to
dd1b026
Compare
CartBlanche
force-pushed
the
dominique-TemplateWizard
branch
2 times, most recently
from
June 19, 2024 20:19
09c5677
to
037190a
Compare
CartBlanche
force-pushed
the
dominique-TemplateWizard
branch
from
July 2, 2024 13:55
037190a
to
d7b18e5
Compare
I'll put some time into this one today and get it merged - thx for the patience Dom :) |
adrianstevens
approved these changes
Sep 25, 2024
adrianstevens
approved these changes
Sep 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This uses Spectre.Console, as we already have it in the repo. As such it isn't a fancy wizard yet, as a wizard widget isn't built in like in Miguel's Terminal.
This PR adds a
meadow project install
command, which when run looks like this:This PR also adds a
meadow project new
, which allows you to multi-select templates to generate and looks like this:and the resultant sln looks like this:
Binaries available from : https://github.com/WildernessLabs/Meadow.CLI/actions/runs/9092983217
Attempts to solve : WildernessLabs/Meadow_Issues#640