Git Product home page Git Product logo

mklinker's People

Contributors

rubenchristoffer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

mklinker's Issues

Remove links based on regex

Would work similar to addlinks command, but instead of adding links it would remove them based on a regex pattern.

Better validate command

There needs to be a better validate command that takes into account if target file exists or if there are multiple config links with the same target.

Add unit tests

Unit tests would be a good idea to better maintain the program.

Resolve paths from perspective of config file rather than working directory

Currently relative paths are resolved from the perspective of the working directory and not the actual config file. That can lead to trouble when specifying a config file that resides in a different directory than the working directory.

Here's an example of the problem:
Working directory is "/home/user".
Config file is "/home/user/config/config.linker"

If the config has a relative target path "./linkhere" and you run the command mklinker linkall --path /home/user/config/config.linker, then the actual link will be created in "/home/user/linkhere" rather than "/home/user/config/linkhere".

Use relative path as default

Currently when you provide an absolute path when adding links it will keep the absolite path, but it would be a good idea to convert it to a relative path by default if possible.

Add ability to invert source and target path

This would simply be an option (--invert / -i) that treats source path as target path and vice versa. The reason this is useful is because you might be in a situation where your target path already exists, but your source path does not (for example when re-installing operating system or any other backup situation).

Creating custom path parser

Creating a custom path parser makes it possible to add custom syntax in addition to keeping it the same cross-platform.

Ability to provide variables via command-line

Currently, variables are located in the actual config file. It would be nice to be able to override variable values (temporarily) by passing in an optional option called --override / -o or something like that.

Could also be useful to add a feature where variable values are supposed to be added through reading console input as well.

Adding support for variables

It would be nice to be able to have support for custom variables in addition to environmental variables so that you can benefit from more dynamic linking.

Add table view for list command

Currently the formatting of the list command is not ideal and it would be nice to have the ability to create a nicely formatted table by adding a --table / -t option.

Add command for displaying full mklink command

It would be nice to have a command that displays the mklink command (the process call used to create the actual links on the system) in order to better be able to debug when command fails.

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.