config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2025 The Hulo Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const NAME = "huloc.yaml"

NAME is the default configuration file name.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashOptions

type BashOptions struct {
	MultiString   string `json:"multiString"`
	BooleanFormat string `json:"booleanFormat" validate:"oneof=number string command"`
}

BashOptions is the configuration for the Bash compiler.

type BatchOptions

type BatchOptions struct {
	CommentSyntax string `json:"commentSyntax" validate:"oneof=rem double_colon"`
}

BatchOptions is the configuration for the Batch compiler.

type CompilerOptions

type CompilerOptions struct {
	Bash     *BashOptions     `json:"bash"`
	Batch    *BatchOptions    `json:"batch"`
	VBScript *VBScriptOptions `json:"vbs"`
}

CompilerOptions is the configuration for the compiler.

type Huloc

type Huloc struct {
	CompilerOptions CompilerOptions `json:"compilerOptions"`
	Main            string          `json:"main" validate:"required,endswith=.hl"`
	Language        Language        `json:"language"`
	Include         []string        `json:"include"`
	Exclude         []string        `json:"exclude"`
	HULOPATH        string          `json:"hulopath"`
}

Huloc is the configuration for the Hulo compiler.

func (*Huloc) Validate

func (c *Huloc) Validate() error

Validate validates the Huloc configuration.

type Language

type Language string
const (
	L_BASH     Language = "bash"
	L_BATCH    Language = "batch"
	L_VBSCRIPT Language = "vbs"
)

type VBScriptOptions

type VBScriptOptions struct {
	CommentSyntax string `json:"commentSyntax" validate:"oneof=rem single_quote"`
}

VBScriptOptions is the configuration for the VBScript compiler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL