getVersionCommand function

Future<String> getVersionCommand(
  1. ExecuteCommandFunction executeShellCommand
)

Implementation

Future<String> getVersionCommand(
    ExecuteCommandFunction executeShellCommand) async {
  final output = await executeShellCommand(ExecuteCommandInput(
    command: "npx",
    args: ["@usermn/sdc", "--version"],
  ));
  return cleanVersion(output.stdout) ?? '';
}