@nx-go/nx-go
Advanced tools
Comparing version 2.3.1 to 2.4.0
{ | ||
"name": "@nx-go/nx-go", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "generators": "./generators.json", |
@@ -13,3 +13,3 @@ "use strict"; | ||
const mainFile = (_c = options.main) === null || _c === void 0 ? void 0 : _c.replace(`${cwd}/`, ''); | ||
return (0, utils_1.runGoCommand)(context, 'run', [mainFile], { cmd: options.cmd, cwd }); | ||
return (0, utils_1.runGoCommand)(context, 'run', [mainFile, ...options.arguments], { cmd: options.cmd, cwd }); | ||
}); | ||
@@ -16,0 +16,0 @@ } |
@@ -5,3 +5,3 @@ export interface ServeExecutorSchema { | ||
main: string | ||
outputPath: string | ||
arguments: string[] | ||
} |
@@ -5,6 +5,30 @@ { | ||
"title": "Serve executor", | ||
"description": "", | ||
"description": "Run the Go application", | ||
"type": "object", | ||
"properties": {}, | ||
"properties": { | ||
"cmd": { | ||
"type": "string", | ||
"description": "Name of the go binary (usually 'go')", | ||
"default": "go" | ||
}, | ||
"cwd": { | ||
"type": "string", | ||
"description": "Working directory from which to run the application", | ||
"default": "" | ||
}, | ||
"main": { | ||
"type": "string", | ||
"description": "Name of the file containing the main() function", | ||
"default": "main.go" | ||
}, | ||
"arguments": { | ||
"description": "Command line arguments for the application", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"default": [] | ||
} | ||
}, | ||
"required": [] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43189
655