config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package config provides configuration parsing and compilation input processing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader is able to read directories and files and return inputs for ssh-aliases compiler

func NewReader

func NewReader() *Reader

NewReader returns new instance of Reader

func (*Reader) ReadConfigs

func (e *Reader) ReadConfigs(dir string) (compiler.InputContext, error)

ReadConfigs processes the input directory and returns inputs for ssh-aliases compiler

type Scanner

type Scanner struct{}

Scanner is used to select files that contain ssh-aliases configs

func NewScanner

func NewScanner() *Scanner

NewScanner creates new instance of Scanner

func (*Scanner) ScanDirectory

func (s *Scanner) ScanDirectory(path string) ([]string, error)

ScanDirectory returns an array of file names that contain ssh-aliases configs

Jump to

Keyboard shortcuts

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