Skip to content
/ lnkr Public

The utility allows to create and manage several versions (editions) of some file or directory and simply substitute it and quick change substitutions like nvm allows to deal with several versions of node engine.

License

Notifications You must be signed in to change notification settings

yarikos/lnkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lnkr

Build Status Test Coverage Code Climate NPM Downloads License

The utility allows to create and manage several versions (editions) of some file or directory and simply substitute it and quick change substitutions like nvm allows to deal with several versions of node engine.

Not implemented even anything here yet. Just todo notes for now.

Installation

npm i -g lnkr

Usage

# Init lnkr for filename
lnkr init <filename>

# Add first edition (or version or substition)
lnkr <filename> add <filename-source-1> [as <tag-1>]

# Add second edition
#lnkr <filename> add <filename-source-2> [as <tag-2>]

# Switching between edititoins
lnkr <filename> use <tag-1>
lnkr <filename> use <tag-2>

# Add third edition from same name from git 
# (Sort of alias to git checkout branch -- filename_path)
lnkr <filename> add --git <git branch or commit>

# Reset all lnkr stuff, restore to initial state of filename
lnkr <filename> reset

# Show all editions
lnkr <filename> list

# Hide temporary lnkr dir (actually it moves from ./.lnkr to ~/.lnkr)
lnkr hide
# Move lnkr's stuff back from ~/.lnkr to ./.lnkr
lnkr unhide

Todo

  • Autocomplete (Filename, tag)
  • Compression of the repo

License

MIT

About

The utility allows to create and manage several versions (editions) of some file or directory and simply substitute it and quick change substitutions like nvm allows to deal with several versions of node engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published