GithubHelp home page GithubHelp logo

busterc / mvy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 22 KB

:file_folder: mvy = mkdirp + mv // a cli for moving to a new directory

License: ISC License

JavaScript 100.00%
directories move mkdir filesystem files glob globbing

mvy's Introduction

mvy NPM version

mvy = mkdirp + mv // a cli for moving to a new directory

Installation

$ npm install mvy --global

Usage

$ mvy <source> ... <target>

    Options

      --force, -f  Overwrite existing target files
# MAJOR KEY ALERT:
#
# 1. When the <target> has a trailing slash,
#    the <source> will be placed inside the <target>
#
# 2. When both the <source> and <target> have trailing slashes,
#    the *ENTIRE* <source> path will be appended to the <target> path
#    and the <source> files will be placed inside the appended <target> path
#
# 3. Supports multiple sources and globs


# move a file into a new directory
$ mvy somewhere/exists/a.file yet/to/be/created/directory/
# => yet/to/be/created/directory/a.file


# move multiple files into a new directory
$ mvy somewhere/exists/*.file yet/to/be/created/directory/
# => yet/to/be/created/directory/a.file
# => yet/to/be/created/directory/b.file


# move a file into a new directory and rename the file
$ mvy somewhere/exists/a.file yet/to/be/created/directory/b.file
# => yet/to/be/created/directory/b.file


# move a directory into a new directory
$ mvy somewhere/exists yet/to/be/created/directory/
# => yet/to/be/created/directory/exists/
# => yet/to/be/created/directory/exists/a.file


# move a directory into a new directory and rename the directory
$ mvy somewhere/exists yet/to/be/created/directory
# => yet/to/be/created/directory/
# => yet/to/be/created/directory/a.file


# move a directory into a new directory *APPENDING THE SOURCE PATH*
$ mvy somewhere/exists/ yet/to/be/created/directory/
# => yet/to/be/created/directory/somewhere/exists/
# => yet/to/be/created/directory/somewhere/exists/a.file

License

ISC © Buster Collings

mvy's People

Contributors

busterc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mvy's Issues

Does not override on linux

On windows, it does not override, but linux throws exception:

{ [Error: EEXIST: file already exists, link 'build' -> 'target/classes/META-INF/resources']
  errno: -17,
  code: 'EEXIST',
  syscall: 'link',
  path: 'build',
  dest: 'target/classes/META-INF/resources' }

this is how I use it

mvy build  target/classes/META-INF/resources"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.