Coder Social home page Coder Social logo

Comments (4)

DannyBen avatar DannyBen commented on September 23, 2024 1

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.

  1. 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.
  2. There is an option to create extensible scripts. Sort of like git does: If you place an executable file named git-anything in your path, then running git 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.

DannyBen avatar DannyBen commented on September 23, 2024

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.

DannyBen avatar DannyBen commented on September 23, 2024

The validation for command.name was implemented in #345 following #344.
I see uppercase letters were disallowed on purpose.

from bashly.

MIngPAPA avatar MIngPAPA commented on September 23, 2024

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)

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.