config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

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