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

✨ Added distill --init #4

Merged
merged 8 commits into from May 27, 2022
Merged

✨ Added distill --init #4

merged 8 commits into from May 27, 2022

Conversation

tw00
Copy link
Contributor

@tw00 tw00 commented May 25, 2022

  • Added clap CLI parser
  • Added new --init option, which creates .moonshinerc based on template
  • Added new --watch option (which does nothing for now)
  • Added new --debug option (which does nothing for now)
  • Replaced distill <config> with distill --config <config>

@tw00 tw00 changed the title Added distill --init ✨ Added distill --init May 25, 2022
Err(_why) => Err("Unable to write contents to file"),
Ok(_) => Ok(()),
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tw00 I originally wrote this using .unwrap() on Result and Option types to avoid handling errors. I just changed it, but .unwrap() is usually a sign of cutting corners.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@tw00 tw00 merged commit 884591d into main May 27, 2022
@tw00 tw00 deleted the tw00/cli-init branch June 3, 2022 21:01
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.

None yet

2 participants