{"repo":"carlocorradini/inline","free":true,"listed":false,"github":"https://github.com/carlocorradini/inline","clone":"git clone https://github.com/carlocorradini/inline.git","description":"Inline script sources","language":"Shell","stars":18,"topics":["automation","bash","inline","posix-sh","script","source"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Inline script sources Inline script sources ( source or . ). It is convenient to be able to divide long scripts into many files to make them easier to work with while maintaining the ability to distribute them as a single script. Inspired by @joehillen GitHub Gist Features - POSIX compliant - Sourcing with quotes, spaces and more - Sourcing from $PATH - Sourcing from ShellCheck source: # shellcheck source=path/to/script.sh Warning : Available only if source or . is invalid - Sources in sources - Recursion detection - Shebang ( #! ) removal in sources - Skip source: # inline skip Note : Works with ShellCheck as well - Configurable \\ See Options Download Usage Warning : Script must have execute permission: chmod u+x ./inline.sh Note : See Options for more configuration Note : Type --help for more information Pass the script to be aligned with --in-file path/to/script.sh \\ It creates a script called script.aligned.sh \\ The resulting script is automatically aligned : all sources ( source or . ) are directly included. Examples 1. Inline script hello.sh and save it as world.sh 1. Inline script hello world.sh and overwrite it Options Name Description Default Values --------------------- -------------------------- ------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- --disable-color Disable color false --help Show help message and exit --in-file Input file Any v","default_branch":null,"files":null,"tree":[],"storefront":"/r/carlocorradini","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/carlocorradini/inline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}