Interface ICommandHooks

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ICommandHooks.Jsii$Default
All Known Implementing Classes:
ICommandHooks.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.134Z") @Stability(Experimental) public interface ICommandHooks extends software.amazon.jsii.JsiiSerializable
(experimental) Command hooks.

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 ./...`];
    }
    // ...
 }
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for ICommandHooks.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    afterBundling(String inputDir, String outputDir)
    (experimental) Returns commands to run after bundling.
    beforeBundling(String inputDir, String outputDir)
    (experimental) Returns commands to run before bundling.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • afterBundling

      @Stability(Experimental) @NotNull List<String> afterBundling(@NotNull String inputDir, @NotNull String outputDir)
      (experimental) Returns commands to run after bundling.

      Commands are chained with &&.

      Parameters:
      inputDir - This parameter is required.
      outputDir - This parameter is required.
    • beforeBundling

      @Stability(Experimental) @NotNull List<String> beforeBundling(@NotNull String inputDir, @NotNull String outputDir)
      (experimental) Returns commands to run before bundling.

      Commands are chained with &&.

      Parameters:
      inputDir - This parameter is required.
      outputDir - This parameter is required.