Comments (4)
Well,
The fact that command.name did not allow for dot, was definitely an oversight. I fixed that.
If you wish to use it right away, you can use the edge version - let me know if you need help with that.
As for creating multiple scripts due to complexity - sure, it is an option.
Just to give you a few more options to consider - not sure if any of these will help you, but you should be aware they exist to help with complex scripts.
- There is the option to separate the bashly config file into several files. More info in the Advanced Features > Split Config section of the docs.
- There is an option to create extensible scripts. Sort of like
git
does: If you place an executable file namedgit-anything
in your path, then runninggit anything
will execute it. More on this in the Advanced Features > Extensible Scripts section of the docs.
As always, let me know if you need further help.
from bashly.
Hmm. Good question.
As a general notion, security is not really a consideration, since we only generate a bash script, and the assumption is that the user using bashly is not malicious towards their own machine.
I don't think this particular regex is limited intentionally. In fact, it does not even allow cli.sh
or MyCamelScript
.
I will review if there was a reason for it, but if not, will definitely loosen that regex a bit.
Thanks for raising this issue. I will update here as soon as I find something or make the change.
from bashly.
The validation for command.name
was implemented in #345 following #344.
I see uppercase letters were disallowed on purpose.
from bashly.
Thanks for your warm reply!
Yes, currently I have a situation. For example, a traditional bash script hello.sh
with quite a lot of subcommands causing system complexity. As a result, I separate it into different modules, such as hello-nice.sh
, hello-bye.sh
, hello-world.sh
etc.
The '-' & '_' can be well applied.
hello.nice.sh
, hello.bye.sh
, hello.world.sh
, or even hello.nice
, hello.bye
, hello.world
will it be a good implement or not, in your opinion?
from bashly.
Related Issues (20)
- Add support for recursive --help HOT 6
- Build multi-arch docker HOT 2
- Default argument is not validated HOT 6
- Flag arguments with a single hyphen prefix are not working HOT 1
- bash completions can't work properly when the position args used 'allowed:' HOT 3
- Repeatable args don't escape quotation marks HOT 12
- Add option to disable splitting of flags with value for catch_all arguments HOT 9
- Lifecycle for temporary directories HOT 1
- Heredoc indentation issue in bashly generated functions. HOT 9
- The Flag value is detected as an Argument HOT 2
- Showing an additional usage line for forced commands HOT 3
- Is it possible to have no command and take arguments from user ? HOT 3
- Shellcheck failure on repeatable argument with allowed values HOT 3
- Default command is not triggered when only flags are provided HOT 1
- using bashly without ruby or docker HOT 3
- Bashly generated script fails shellcheck rule SC2059 HOT 11
- Allow semi-private commands HOT 5
- THIS_SCRIPT variable HOT 4
- Bug in ini library HOT 10
- eval in .zshrc triggers initialise.sh unexpectedly – Is this intended behavior? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashly.