UNPKG

@naxodev/gonx

Version:

Modern Nx plugin to use Go in a Nx workspace

11 lines (10 loc) 562 B
/** * Executes the `go list -m -json` command in the * specified directory and returns the output as a string. * * @param cwd the current working directory where the command should be executed. * @param failSilently if true, the function will return an empty string instead of throwing an error when the command fails. * @returns The output of the `go list -m -json` command as a string. * @throws Will throw an error if the command fails and `failSilently` is false. */ export declare const getGoModules: (cwd: string, failSilently: boolean) => string;