Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next bits #1

Open
shadowcat-mst opened this issue May 22, 2020 · 1 comment
Open

Next bits #1

shadowcat-mst opened this issue May 22, 2020 · 1 comment

Comments

@shadowcat-mst
Copy link
Owner

Walking upwards to find the .plx directory

Add ~/.plx/global/ to provide defaults for things ($ENV{HOME} on *n?x, File::HomeDir on win32 since strawberry ships it as core)

.plx/commands for additional commands (resolved before dev/)

command resolution order (dev/ scripts/ script/ bin/ by default but configurable)

--actions needs to provide a one-line summary of the actions

--help needs to accept an argument for action docs and for command docs

--commands maybe should try to produce a one-line summary for commands (parsed from the file)

env/ and envfor/ config types to provide environment variables

Possibly:

actions/ for custom actions

plugins/ for ?????

@iamalnewkirk
Copy link
Contributor

The cmd action, e.g. perl -I. -Ilib bin/plx --cmd, should not attempt to exec without at-least one arg.

$ perl -I. -Ilib bin/plx --base
--base <base> <action> <args>

$ perl -I. -Ilib bin/plx --cmd
Use of uninitialized value $cmd in string eq at bin/plx line 266.
Use of uninitialized value $cmd in pattern match (m//) at bin/plx line 270.
Use of uninitialized value $cmd in pattern match (m//) at bin/plx line 270.
Use of uninitialized value in subroutine entry at bin/plx line 100.
Use of uninitialized value in subroutine entry at bin/plx line 100.
Use of uninitialized value within @exec in exec at bin/plx line 297.
Use of uninitialized value $exec[0] in join or string at bin/plx line 297.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants