Interface ICommandHooks
(experimental) Command hooks.
Namespace: Amazon.CDK.AWS.Lambda.Go
Assembly: Amazon.CDK.AWS.Lambda.Go.dll
Syntax (csharp)
public interface ICommandHooks
Syntax (vb)
Public Interface ICommandHooks
Remarks
These commands will run in the environment in which bundling occurs: inside the container for Docker bundling or on the host OS for local bundling.
Commands are chained with &&
.
{
// Run tests prior to bundling
beforeBundling(inputDir: string, outputDir: string): string[] {
return [`go test -mod=vendor ./...`];
}
// ...
}
Stability: Experimental
Synopsis
Methods
AfterBundling(String, String) | (experimental) Returns commands to run after bundling. |
BeforeBundling(String, String) | (experimental) Returns commands to run before bundling. |
Methods
AfterBundling(String, String)
(experimental) Returns commands to run after bundling.
string[] AfterBundling(string inputDir, string outputDir)
Parameters
- inputDir System.String
- outputDir System.String
Returns
System.String[]
Remarks
Commands are chained with &&
.
Stability: Experimental
BeforeBundling(String, String)
(experimental) Returns commands to run before bundling.
string[] BeforeBundling(string inputDir, string outputDir)
Parameters
- inputDir System.String
- outputDir System.String
Returns
System.String[]
Remarks
Commands are chained with &&
.
Stability: Experimental