Skip to content

The File Operations CLI, a command-line application written in Golang to count line and checksum files

Notifications You must be signed in to change notification settings

cdvel/file-ops-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5aea7c0 · Jul 31, 2021

History

37 Commits
Mar 26, 2021
Mar 27, 2021
Mar 26, 2021
Mar 26, 2021
Mar 30, 2021
Mar 26, 2021
Mar 24, 2021
Mar 24, 2021
Mar 27, 2021
Jul 31, 2021
Mar 26, 2021
Mar 26, 2021
Mar 25, 2021

Repository files navigation

File Ops CLI

CircleCI

The File Operations (Fops) CLI, a resilient command line application written in Golang to count line and checksum files.

Installation

git clone https://github.com/cdvel/fops-cli
cd fops-cli
make
./fops help

Usage

Once installed, the CLI is used via the following standard format:

fops <command> <file> <flags>

Commands

This CLI supports the following commands:

  • linecount - Count the number of lines in a file

  • checksum - Find the checksum of a file using md5, sha1 or sha256

  • version - Get the current version of Fops

  • help - Print help

Flags

Flag Shorthand Description Example
--file -f Filename to be queried. linecount -f my-sample.txt
--md5 NA Use MD5 algorith to checksum a file. checksum --md5
--sha1 NA Use SHA1 algorith to checksum a file. checksum --sha1
--sha256 NA Use SHA256 algorith to checksum a file. checksum --sha26

Roadmap

basics

  • barebones cli with command placeholders
  • read file argument
  • argument detection (file, algorithm)

file verification

  • non-existent
  • is a dir
  • is binary

linecount

  • verify file
  • read file
  • count lines in file

checksum

  • verify file: binary ok
  • read algorithm flag
  • implement 3 flags

version

  • get from build

help

  • implement
  • subcommands

CI

  • Unit tests
  • Integrate with CircleCI
  • Build
  • Release

Dependencies

Limitations

Contributing

Check out CONTRIBUTING.md to learn how to contribute to this project.

License

This library is licensed under the Apache 2.0 License.

About

The File Operations CLI, a command-line application written in Golang to count line and checksum files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published