Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geoffrey1330/filecommander

A Golang Cli tool for performing file operations
https://github.com/geoffrey1330/filecommander

Last synced: 3 months ago
JSON representation

A Golang Cli tool for performing file operations

Awesome Lists containing this project

README

        

# File Commander

File Commander is a command-line tool for performing various file operations such as `DELETE`, `COPY`, `MOVE`,`READ`, `SEARCH`, `LIST` with the terminal.

## Installation

To install File Commander, follow this [Guide](https://github.com/geoffrey1330/filecommander/blob/main/Installation.md)

## Getting Repo

follow these steps:

1. Make sure you have Go installed on your machine.

```shell
# Check Go version
go version
```

or visit https://go.dev/ to install Go on your local machine.

2. Clone the repository or download the source code.

```shell
git clone https://github.com/geoffrey1330/filecommander.git
```

3. Navigate to the project directory.

```shell
cd filecommander
```

4. Run the following command to build the executable:

```shell
go build -o filecommander main.go search.go utils.go
```

This will generate an executable named filecommander.

## Usage

File Commander supports the following commands:

#### Create

Create a new file.

```shell
filecommander create
```

#### Read

Read the content of a file.

```shell
filecommander read
```

#### Write

Write content to a file.

```shell
filecommander write
```

#### Delete

Delete a file.

```shell
filecommander delete
```

#### List

List all files in a directory.

```shell
filecommander list
```

#### Copy

Copy a file to a new destination.

```shell
filecommander copy
```

#### Move

Move a file to a new destination.

```shell
filecommander move
```

#### Search

Search for files in a directory based on a given search term.

```shell
filecommander search
```

OR

```shell
filecommander search
```

#### Open

Open a file in the default editor.

```shell
filecommander open
```