app

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JumperApp added in v1.8.2

func JumperApp(cli *cli.App)

JumperApp initializate app

Types

type FileSystem

type FileSystem struct{}

FileSystem file management type

func (*FileSystem) DirExists

func (fs *FileSystem) DirExists(path string) (bool, error)

DirExists checks if directory exists

func (*FileSystem) FileExists

func (fs *FileSystem) FileExists(filename string) (bool, error)

FileExists checks if file exists

func (*FileSystem) GetUserDirectory

func (fs *FileSystem) GetUserDirectory() (string, error)

GetUserDirectory gets home user's directory

func (*FileSystem) GetWd

func (fs *FileSystem) GetWd() (string, error)

GetWd works as `pwd`

func (*FileSystem) GoToProjectPath

func (fs *FileSystem) GoToProjectPath(projectPath string) error

GoToProjectPath does CD to the path

func (*FileSystem) ReadConfigFile

func (fs *FileSystem) ReadConfigFile(filename string, configuration interface{}) (err error)

ReadConfigFile reads json file

func (*FileSystem) SaveConfigFile

func (fs *FileSystem) SaveConfigFile(data interface{}, fileName string) error

SaveConfigFile save data to json file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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