Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ shortcuts:

You can use `/` to filter the list of instances. For more shortcuts, press `h`.

## Container name separator

CCManager tries to lookup CloudControl environments by the name of their typical containers. These names are
usually in the form of <project><separator><service><separator><counter>.

The default separator is "-", but may be different in the container engine you're using. You can define the
separator using the environment variable `CCMANAGER_SEP`.

## Development

CCmanager is based on [Go](https://go.dev),
Expand Down
3 changes: 3 additions & 0 deletions cmd/ccmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/alexflint/go-arg"
"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
"github.com/docker/compose/v2/pkg/api"
"os"
)

Expand All @@ -21,6 +22,8 @@ func main() {

var items []list.Item

api.Separator = args.ContainerSeparator

d := adapters.DockerAdapter{}

program := tea.NewProgram(models.NewMainModel(&d, args.BasePath, items))
Expand Down
Loading