-
Notifications
You must be signed in to change notification settings - Fork 10
THE BIG CLI REWRITE #94
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
Conversation
e6622ad
to
649fd3b
Compare
@jakelang is this going to be finished? |
0a39862
to
c6b65c3
Compare
56f3af8
to
14c7a33
Compare
39d72fa
to
5fc46be
Compare
159a81b
to
e84387b
Compare
e84387b
to
51a1c1a
Compare
.global(true), | ||
) | ||
.arg( | ||
Arg::with_name("DEBUG_MESSAGES") |
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.
Why not keep VERBOSE
as before?
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.
Looks strange when you run chisel --help
90c31f4
to
034b2bb
Compare
chisel/src/driver.rs
Outdated
while let Some((name, module)) = ruleset.modules_mut().pop_front() { | ||
chisel_debug!(1, "Executing module {}", &name); | ||
|
||
// TODO: homogeneous module handling |
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.
I think the solution to this giant mess is passing a HashMap<String, String>
as configuration as part of ChiselModule
or ModulePreset
.
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.
Attempted it in #161.
034b2bb
to
cb09b09
Compare
@@ -93,7 +97,7 @@ impl RulesetResult { | |||
/// Write output module to specified file if the module was mutated. | |||
/// Returns Ok(false) if there is no mutation. | |||
/// Returns error on writer error or invalid mode. | |||
pub fn write(&mut self, mode: &str) -> Result<bool, Box<dyn Error>> { | |||
pub fn write(mut self, mode: &str) -> Result<bool, Box<dyn Error>> { |
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.
Aha! :)
cb09b09
to
5d76908
Compare
32d7a44
to
43bef5f
Compare
fn fields(&self) -> (&String, &String) { | ||
(&self.module_name, &self.preset) | ||
} | ||
fn fail(code: i32, message: &str) -> ! { |
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.
Looking at all the users of fail
, all of them use code = 1
. Do we need the code
right now?
Split into different PRs and merged. |
WE ARE A MODERN INDEPENDENT SOFTWARE PROJECT SO LETS HAVE THE UI OF ONE