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