Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDevcontainerConfigs ¶
FindDevcontainerConfigs searches for devcontainer.json files in the given directory. It looks for: - .devcontainer/devcontainer.json - .devcontainer/*/devcontainer.json (subdirectories)
Types ¶
type Config ¶
type Config struct {
Image string `json:"image"`
DockerComposeFile []string `json:"-"`
Service string `json:"service"`
ConfigPath string `json:"-"`
}
Config represents a parsed devcontainer.json configuration.
func ParseConfig ¶
ParseConfig reads and parses a devcontainer.json file. It supports JSONC (JSON with comments) and trailing commas.
func (*Config) GetComposeFiles ¶
GetComposeFiles returns absolute paths of the compose files.
func (*Config) IsComposeBased ¶
IsComposeBased returns true if the config uses docker-compose.
func (*Config) IsImageBased ¶
IsImageBased returns true if the config uses an image directly.
Click to show internal directories.
Click to hide internal directories.