go-file-manager

command module
v0.0.0-...-a581ef7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

README

Build Status Go Report Card GolangCI

go-file-manager

A simple text based file manager written in Go.

Before running the application, have a read of the table under the "Controls" heading below. It is probably good to know which key does what before throwing yourself in the deep end!

Contents

Controls

Note that keys separated by a comma do not have to be pressed together to activate pertinent functionality. The comma means that pressing any of the listed keys will activate the functionality listed in the next column.

Key(s) Functionality
Arrow Up Move the caret to the file/directory above
Arrow Right, Return Move to the current selected directory
Arrow Down Move the caret to the file/directory below
A, a Toggle listing all files
Q, q Quit the application

Installation and Building

Installing Go

To install Go, have a read of the official installation page; and follow the instructions.

Installing Dependencies

This project depends on termbox-go. To install it, paste the following command into your terminal:

go get github.com/nsf/termbox-go

Then, install the application by running:

go get github.com/maxgodfrey2004/go-file-manager
Building the application
Getting to the right directory

To build the application, you must first be located in the application's root directory. This can be found in your GOPATH. If you are not sure of where this is, you will be after running the command:

go env GOPATH
Installing local packages

You are almost there! Now we just have to install the local packages which main.go depends on. Do this by running the command:

go get -t ./...
Building the app

Build the application by running the following command in your terminal:

go build -o gfm.exe main.go

Note that there are other forms of executable which you may produce, for example you may execute:

go build -o gfm main.go

Then, run the executable and revel in all of your new text-based file managing powers! I hope that you find this application useful!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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