peter-bread / bootstrap

Collection of bootstrap scripts for different systems!
1 stars 0 forks source link

Enable options and arguments before running #10

Closed peter-bread closed 1 month ago

peter-bread commented 1 month ago

The idea is that you can pass these in to start with and then have an entirely automated and non-interactive bootstrap.

e.g.

curl -sL <link> | bash -s -- -y -e example@email.com -k github-key -b essential
curl -sL <link> | bash -s -- --yes --email example@email.com --keyfile=github-key --brewfile essential

Options

peter-bread commented 1 month ago

As of f1b7a62a448dee8cc34ab2ea4ad5023dc6a57550,

You can run:

cat options-demo.sh | bash -s -- [options]

to test option parsing.

This will be the general approach that will be moved into the main script

peter-bread commented 1 month ago

As of ba0711ba6ff3762dd907e0814fcd4441ff585dac,

Made usage instructions clearer

peter-bread commented 1 month ago

Change from -k | --keyfile to -i | --identity to be more inline with other SSH commands

peter-bread commented 1 month ago

(Maybe) No need for -y | --yes. If you are specifying other options, you are implicitly saying yes to them.

No need to no git either