I am writing a simple script in fish. I need to pass in an array as follows:
set PACKAGES nginx supervisor rabbitmq-server
apt install $PACKAGES
But as the array gets longer it gets harder to read and maintain...
set PACKAGES nginx supervisor rabbitmq-server libsasl2-dev libldap2-dev libssl-dev python3-dev virtualenv
Is there another way to define an array that is easier to read? For example, vertically with comments:
set PACKAGES
nginx
supervisor
rabbitmq-server
# LDAP packages
libsasl2-dev
libldap2-dev
libssl-dev
# Python packages
python3-dev
virtualenv
end