Files
odo/vendor/github.com/devfile/alizer/pkg/schema/languages.go
dependabot[bot] d77ca3e95a Go: Bump github.com/devfile/alizer from 1.0.1 to 1.2.1 (#7126)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-10-23 18:09:52 +02:00

39 lines
1.6 KiB
Go
Generated

/*******************************************************************************
* Copyright (c) 2021 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Red Hat, Inc.
******************************************************************************/
package schema
type LanguageProperties struct {
Type string `yaml:"type,omitempty"`
Color string `yaml:"color,omitempty"`
Extensions []string `yaml:"extensions,omitempty"`
TmScope string `yaml:"tm_scope,omitempty"`
AceMode string `yaml:"ace_mode,omitempty"`
LanguageID int `yaml:"language_id,omitempty"`
Aliases []string `yaml:"aliases,omitempty"`
CodemirrorMode string `yaml:"codemirror_mode,omitempty"`
CodemirrorMimeType string `yaml:"codemirror_mime_type,omitempty"`
Group string `yaml:"group"`
Filenames []string `yaml:"filenames"`
}
type LanguagesProperties map[string]LanguageProperties
type LanguageCustomization struct {
ConfigurationFiles []string `yaml:"configuration_files"`
Component bool `yaml:"component"`
ContainerComponent bool `yaml:"container_component"`
ExcludeFolders []string `yaml:"exclude_folders,omitempty"`
Aliases []string `yaml:"aliases"`
Disabled bool `default:"false" yaml:"disable_detection"`
}
type LanguagesCustomizations map[string]LanguageCustomization