coppeno

command module
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 9 Imported by: 0

README

coppeno

Quick project kickstarter Simple File Manager CLI tool.

linkedin_banner_image_1

Usage Image

coppeno

Installation

Homebrew

$ brew tap webcyou-org/coppeno
$ brew install coppeno

golang

go install github.com/webcyou-org/coppeno@latest

or

GO111MODULE=on go get github.com/webcyou-org/coppeno

Usage Example

Default Usage

$ coppeno <command>
Commands
Commands argument description
init None Initialize coppeno.json.
save [filename] [URL] Save the file name and file path interactively.
load [filepath] Read the coppeno.json file that was created.
fetch None or [filename] Download the file saved in coppeno.json
diff Check the difference between the destination file and the local file.
list None Check the list of files saved in coppeno.json.
setting None Updating the configuration file
cache Cache the downloaded files

To see a full list of commands available for the CLI tools, type:

$ coppeno help
NAME:
   coppeno - Quick project kickstarter Simple File Manager CLI tool.

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   0.7.2

COMMANDS:
   init      Initialize coppeno.json.
   save, s   Save the file name and file path interactively.
   load, l   Read the coppeno.json file that was created.
   fetch, f  Download the file saved in coppeno.json
   list      Check the list of files saved in coppeno.json.
   help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Quick Start

config files

Create a file that conforms to the XDG Base Directory specification.

coppeno.json

{
  // Not grouped.
  "none": [
    {
      "name": "File Name",
      "url": "File URL for download"    
    },
    {
      "name": "File Name",
      "url": "File URL for download"    
    }
  ],
  // Arbitrarily grouped.
  "dotfiles": [
    {
      "name": ".gitconfig",
      "url": "https://github.com/lewagon/dotfiles/blob/master/gitconfig"
    },
    {
      "name": ".bash_profile",
      "url": "https://github.com/mathiasbynens/dotfiles/blob/main/.bash_profile"
    }
  ]
}

config.json

coppeno struct

coppeno {
  filename,
  ext,
  domain,
  path,
  filesize
}

GOPATH

Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used:

export PATH=$PATH:$GOPATH/bin

Creators

Daisuke Takayama

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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