# ProcessCommandExportOptions

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

ATS-friendly configuration for resource process commands.

## Definition

```go
type ProcessCommandExportOptions struct {
    ExecutablePath              *string           `json:"ExecutablePath"`
    Arguments                   []string          `json:"Arguments"`
    WorkingDirectory            *string           `json:"WorkingDirectory"`
    EnvironmentVariables        map[string]string `json:"EnvironmentVariables"`
    InheritEnvironmentVariables *bool             `json:"InheritEnvironmentVariables"`
    StandardInputContent        *string           `json:"StandardInputContent"`
    KillEntireProcessTree       *bool             `json:"KillEntireProcessTree"`
    CreateProcessSpec           func(...any) any  `json:"CreateProcessSpec"`
    CommandOptions              *CommandOptions   `json:"CommandOptions"`
    MaxOutputLineCount          *float64          `json:"MaxOutputLineCount"`
    DisplayImmediately          *bool             `json:"DisplayImmediately"`
    SuccessExitCodes            []float64         `json:"SuccessExitCodes"`
}
```

## Fields

- `ExecutablePath`: `*string` -- The executable path or command name to start.
- `Arguments`: `[]string` -- The command-line arguments for the process.
- `WorkingDirectory`: `*string` -- The working directory for the process.
- `EnvironmentVariables`: `map[string]string` -- The environment variables to set for the process.
- `InheritEnvironmentVariables`: `*bool` `optional` -- A value indicating whether the process should inherit the current environment variables.
- `StandardInputContent`: `*string` -- Standard input content to write to the process after it starts.
- `KillEntireProcessTree`: `*bool` `optional` -- A value indicating whether the entire process tree should be killed when the process is disposed.
- `CreateProcessSpec`: `func(...any) any` `optional` `callback` -- A callback that creates the local process specification when the command is invoked.
- `CommandOptions`: [`*CommandOptions`](/reference/api/go/aspire.hosting/commandoptions.md) -- Optional command configuration.
- `MaxOutputLineCount`: `*float64` `optional` -- The maximum number of stdout and stderr output lines returned as command result data.
- `DisplayImmediately`: `*bool` `optional` -- A value indicating whether returned command output should be displayed immediately in the dashboard.
- `SuccessExitCodes`: `[]float64` -- The exit codes that are treated as a successful command invocation.
