Skip to content

Build multiple targets with shared code. #1

@oz123

Description

@oz123

Hi! Thanks for this nifty little project!

I really like the idea. Suppose I have two scripts that use a common "library", foo.sh bar.sh and library called util.sh.

Build both by creating two project and linking util.sh from one place to another does not work, also relative use ../bla/src/util.sh does not work.

What works:

$ cat src/main.sh
use util/foo;

function main() {
        echo "Hello world";
}

Whre util is a git submodule I can sync to both projects. However, this really not trivial, and It would be cool if I could specify the main entry point for multiple "binaries" like with go for example.

As for example here. Obiviously, there will be a need to change the format of Bashbox.meta.

I hope my idea is clear. I'd love to contribute with some guidance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions