github.com/paketo-buildpacks/packit@v1.3.2-0.20211206231111-86b75c657449/process.go (about)

     1  package packit
     2  
     3  // Process represents a process to be run during the launch phase as described
     4  // in the specification:
     5  // https://github.com/buildpacks/spec/blob/main/buildpack.md#launch. The
     6  // fields of the process are describe in the specification of the launch.toml
     7  // file:
     8  // https://github.com/buildpacks/spec/blob/main/buildpack.md#launchtoml-toml.
     9  type Process struct {
    10  	// Type is an identifier to describe the type of process to be executed, eg.
    11  	// "web".
    12  	Type string `toml:"type"`
    13  
    14  	// Command is the start command to be executed at launch.
    15  	Command string `toml:"command"`
    16  
    17  	// Args is a list of arguments to be passed to the command at launch.
    18  	Args []string `toml:"args"`
    19  
    20  	// Direct indicates whether the process should bypass the shell when invoked.
    21  	Direct bool `toml:"direct"`
    22  
    23  	// Default indicates if this process should be the default when launched.
    24  	Default bool `toml:"default,omitempty"`
    25  }