importpw / import

`import` is a simple and fast module system for Bash and other Unix shells
https://import.sh
MIT License
338 stars 10 forks source link

proposal: Importfile #32

Closed matti closed 4 years ago

matti commented 4 years ago

Proposal: Importfile which works a bit like Gemfile:

#!/usr/bin/env import

# The URL is downloaded once, cached forever, and then sourced
import "https://git.io/fAWiz"

And then calling import install would download&cache files. This would be great for docker builds.

emiliovesprini commented 4 years ago

How would Importfile + import install differ from imports.sh + ./imports.sh ?

matti commented 4 years ago

It wouldn't - it would just be nice and tasty sugar.

TooTallNate commented 4 years ago

There's nothing stopping you from naming the file that, but I don't see what import install would do. You could simply do import Importfile or make the Importfile be executable and run ./Importfile to achieve the same effect.

emiliovesprini commented 4 years ago

😂😂😂 ./imports/import/import.sh importyMcImportsface.sh

matti commented 4 years ago

So this is an documentation issue for the readme as a "how to make sure your imports are loaded and this thing actually makes sense for production"