Documentation
¶
Index ¶
- func JumperApp(cli *cli.App)
- type FileSystem
- func (fs *FileSystem) DirExists(path string) (bool, error)
- func (fs *FileSystem) FileExists(filename string) (bool, error)
- func (fs *FileSystem) GetUserDirectory() (string, error)
- func (fs *FileSystem) GetWd() (string, error)
- func (fs *FileSystem) GoToProjectPath(projectPath string) error
- func (fs *FileSystem) ReadConfigFile(filename string, configuration interface{}) (err error)
- func (fs *FileSystem) SaveConfigFile(data interface{}, fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.