We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4065d38 commit 15fdb2aCopy full SHA for 15fdb2a
crates/chisel/bin/main.rs
@@ -92,6 +92,12 @@ pub enum ChiselSubcommand {
92
93
/// Clear all cached chisel sessions from the cache directory
94
ClearCache,
95
+
96
+ /// Simple evaluation of a command without entering the REPL
97
+ Eval {
98
+ /// The command to be evaluated.
99
+ command: String,
100
+ },
101
}
102
103
fn main() -> eyre::Result<()> {
@@ -168,6 +174,10 @@ async fn main_args(args: Chisel) -> eyre::Result<()> {
168
174
169
175
return Ok(())
170
176
177
+ Some(ChiselSubcommand::Eval { command }) => {
178
+ dispatch_repl_line(&mut dispatcher, command).await;
179
+ return Ok(())
180
+ }
171
181
None => { /* No chisel subcommand present; Continue */ }
172
182
173
183
0 commit comments