Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Listing scripts in distribution metadata

by tobyink (Canon)
on Oct 27, 2020 at 23:56 UTC ( [id://11123240]=note: print w/replies, xml ) Need Help??


in reply to Listing scripts in distribution metadata

I've been using an x_provides_scripts hash in META.json, modelled after the standard provides hash. So say your distribution provides a "csv2json" script, your META.json would contain:

"x_provides_scripts": { "csv2json": { "version": "0.1", "file": "bin/csv2json" } }

Replies are listed 'Best First'.
Re^2: Listing scripts in distribution metadata
by perlancar (Hermit) on Oct 28, 2020 at 22:58 UTC
    Perfect. I'll be adding a support for x_provides_scripts in App::lcpan. I've also started to document the list of custom keys like this in CPAN::Meta::X.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-19 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found