-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathconstants.go
More file actions
35 lines (31 loc) · 1.07 KB
/
Copy pathconstants.go
File metadata and controls
35 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
// Log levels accepted by appState.logger. The level is printed as a bracketed
// prefix, and logLevelFatal additionally terminates the process, so using
// constants avoids a typo silently changing behaviour.
const (
logLevelDebug = "debug"
// "warn" rather than "warning": it is the established prefix, is the only
// spelling the v2 module emits, and is what the BATS suite asserts on.
logLevelWarn = "warn"
logLevelError = "error"
logLevelFatal = "fatal"
)
// Validation issue types, used as ValidationIssue.Type.
const (
issueTypeVersionMismatch = "version_mismatch"
issueTypeMissingFile = "missing_file"
)
// Validation issue severities, used as ValidationIssue.Severity.
const (
severityInfo = "info"
severityWarning = "warning"
severityError = "error"
)
// Feature keys, used as lookups into FeatureSupport.
const (
featureCommandAliases = "command_aliases"
featureOptionalImports = "optional_imports"
featureMultipleEnvFiles = "multiple_env_files"
featureSchemaValidation = "schema_validation"
featureOptionalEnvFiles = "optional_env_files"
)