MCPcopy Create free account
hub / github.com/NthTensor/Forte / prepare

Method prepare

ci/src/ci.rs:62–100  ·  view source on GitHub ↗
(&self, sh: &'a xshell::Shell)

Source from the content-addressed store, hash-verified

60 }
61
62 fn prepare<'a>(&self, sh: &'a xshell::Shell) -> Vec<PreparedCommand<'a>> {
63 let mut flags = Flag::empty();
64
65 if self.keep_going {
66 flags |= Flag::KEEP_GOING;
67 }
68
69 match &self.command {
70 Some(command) => command.prepare(sh, flags),
71 None => {
72 // Note that we are running the subcommands directly rather than using any aliases
73 let mut cmds = vec![];
74 // Lint commands
75 cmds.append(
76 &mut commands::FormatCommand::default().prepare(sh, flags),
77 );
78 cmds.append(
79 &mut commands::ClippyCommand::default().prepare(sh, flags),
80 );
81 cmds.append(
82 &mut commands::LintsCommand::default().prepare(sh, flags),
83 );
84 // Compile commands
85 cmds.append(
86 &mut commands::CompileCheckCommand::default()
87 .prepare(sh, flags),
88 );
89 // Documentation commands
90 cmds.append(
91 &mut commands::DocCheckCommand::default()
92 .prepare(sh, flags),
93 );
94 cmds.append(
95 &mut commands::DocTestCommand::default().prepare(sh, flags),
96 );
97 cmds
98 }
99 }
100 }
101}
102
103/// The subcommands that can be run by the CI script.

Callers 1

runMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected