1use crate::runners::CommandType;
6
7#[inline]
8pub fn set_args(
9 mut cmd: std::process::Command,
10 file_path: &std::path::Path,
11) -> std::process::Command {
12 cmd.arg("lint");
13 cmd.arg("-fix");
14 cmd.arg(file_path);
15 cmd
16}
17
18pub const COMMANDS: [CommandType; 7] = [
19 CommandType::NodeModules("protolint"),
20 CommandType::Direct("protolint"),
21 CommandType::Npm("protolint", "protolint"),
22 CommandType::Pnpm("protolint", "protolint"),
23 CommandType::Bun("protolint", "protolint"),
24 CommandType::Deno("protolint", "protolint"),
25 CommandType::Yarn("protolint", "protolint"),
26];
27
28pub const IS_STDIN: bool = false;