Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

june new and run cli commands #64

Merged
merged 3 commits into from
May 3, 2024
Merged

june new and run cli commands #64

merged 3 commits into from
May 3, 2024

Conversation

yaahc
Copy link
Collaborator

@yaahc yaahc commented May 2, 2024

Add new cli subcommand for setting up June projects

@yaahc yaahc changed the title june new cli command june new and run cli commands May 3, 2024
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
impl fmt::Display for CLIError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
CLIError::New(_) => f.write_str("cannot to create new project"),
Copy link
Owner

Choose a reason for hiding this comment

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

do we want to defer to the reason inside? Having it be this top level might be missing too much context.

src/main.rs Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
}
};

match result {
Copy link
Owner

Choose a reason for hiding this comment

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

I have a cheeky idea.

We already have an error reporter. We coooould use that and then make the source we're underlining the commandline and its args.

@yaahc yaahc merged commit f2107d4 into main May 3, 2024
@yaahc yaahc deleted the june-new branch May 3, 2024 21:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants