Coder Social home page Coder Social logo

app--local--lib--helper's People

Contributors

jjn1056 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

app--local--lib--helper's Issues

Request: create helper that wraps module script

cpan:CXW here. I just discovered this module, which looks very interesting! I have a request: would you be willing to add a way to create a wrapper script that pastes the local::lib setup at the top of a script included in the module? E.g.,

#!$self->{which_perl}
use strict;
use warnings;
use lib '$lib';
use local::lib '$target';
#line 1 some_script
$text_slurped_from_some_script

My use case is distributing scripts to people who don't have local::lib installed or Perl expertise. Given a CPAN module App::Foo that has both Perl and XS dependencies, and includes a script in script/foo or bin/foo (example script), I would like users to be able to install by doing something like:

curl -L http://cpanmin.us/ | perl - --local-lib ~/.local/share/foo App::local::lib::helper App::Foo
ln -s ~/.local/share/foo/script/foo ~/bin/foo

The requested change is so that the single file ~/.local/share/foo/script/foo will exist. If I understand correctly, users would currently have to create ~/bin/foo with the contents .../localenv .../script/foo.

Thank you for considering this request!

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.