Skip to content

Commit

Permalink
feat #232: process-compose ls
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Sep 13, 2024
1 parent b230d41 commit 5441a34
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func printStatesAsTable(states []types.ProcessState) {

func init() {
processCmd.AddCommand(listCmd)
rootCmd.AddCommand(listCmd)

listCmd.Flags().StringVarP(pcFlags.OutputFormat, "output", "o", *pcFlags.OutputFormat, "Output format. One of: (json, wide)")
}
2 changes: 2 additions & 0 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ var (
"attach",
"process",
"project",
"list",
"ls",
}
)

Expand Down
1 change: 1 addition & 0 deletions www/docs/cli/process-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ process-compose [flags]
* [process-compose completion](process-compose_completion.md) - Generate the autocompletion script for the specified shell
* [process-compose down](process-compose_down.md) - Stops all the running processes and terminates the Process Compose
* [process-compose info](process-compose_info.md) - Print configuration info
* [process-compose list](process-compose_list.md) - List available processes
* [process-compose process](process-compose_process.md) - Execute operations on the available processes
* [process-compose project](process-compose_project.md) - Execute operations on a running Process Compose project
* [process-compose run](process-compose_run.md) - Run PROCESS in the foreground, and its dependencies in the background
Expand Down
32 changes: 32 additions & 0 deletions www/docs/cli/process-compose_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## process-compose list

List available processes

```
process-compose list [flags]
```

### Options

```
-h, --help help for list
-o, --output string Output format. One of: (json, wide)
```

### Options inherited from parent commands

```
-L, --log-file string Specify the log file path (env: PC_LOG_FILE) (default "/tmp/process-compose-<user>.log")
--no-server disable HTTP server (env: PC_NO_SERVER)
--ordered-shutdown shut down processes in reverse dependency order
-p, --port int port number (env: PC_PORT_NUM) (default 8080)
--read-only enable read-only mode (env: PC_READ_ONLY)
-u, --unix-socket string path to unix socket (env: PC_SOCKET_PATH) (default "/tmp/process-compose-<pid>.sock")
-U, --use-uds use unix domain sockets instead of tcp
```

### SEE ALSO

* [process-compose](process-compose.md) - Processes scheduler and orchestrator

###### Auto generated by spf13/cobra on 13-Sep-2024

0 comments on commit 5441a34

Please sign in to comment.