uniname

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 13 Imported by: 0

README

uniname - Unique Name

A CLI tool - Rename file to unique name quickly

Build Status Go Report Card PRs Welcome

Usage

Usage:
  uniname [-r] [--sha1|--sha256|--sha512] <input file>
  uniname [--sha1|--sha256|--sha512] <input file> -d <output directory>

Example:
  uniname -r foo.png
  uniname -r --sha256 foo.png
  uniname --sha512 foo.png -d foo/images

Optional flags:
  -d string
        rename to the specified directory
  -h    print help
  -md5
        using md5sum (default true)
  -r    rename the input file
  -sha1
        using sha1sum
  -sha256
        using sha256sum
  -sha512
        using sha512sum
  -v    print version

Examples

uniname -r foo.png                    # md5sum, rename file.
uniname -r --sha1 foo.png             # sha1sum, rename file.
uniname --sha256 foo.png              # sha256sum, do nothing.
uniname --sha512 foo.png -d ./images  # sha512sum, create file to ./images.

Install

If you have a Golang environment:

go get -u github.com/WindomZ/uniname

Or download the latest binary release

Changelog

See CHANGELOG.md

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss, i would love to hear what you think on issues page.

If you like it then you can put a ⭐ on it.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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