-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete styling changes #74
Comments
@molleweide can I assign this to you? |
Sure, later when I have time to walk through all of these files this is a good way for me to get into each of this files. I am assuming you mean update the echoes with colors etc? |
yup, and thank you |
Changes: `setup-environment-commands`: - `GOPATH`, `GOROOT`, `GOBIN` are now created if `go` is present - Use bash `:=` trick to simplify some code - Use arrays to avoid issues with spaces in directories (this may cause issues with bash v3 on fresh macOS installations, needs testing) `setup-go`: - Fixed incorrect `goinstall` function, should have been `act`, but has been rewritten - Removed outdated linting tooling - Removed update all request, as that seems to have been deprecated in favour of requirement of `@latest` tooling `setup-util`: - Stylised and quiet and verbose logging support - Three logging modes, QUIET='', QUIET='no', QUIET='yes' - Added `OPTIONAL=yes` mode `setup-git`: - Optional dependencies now marked as optional via new `setup-util` `OPTIONAL=yes` ability `echo-color`: - Consistent {h,e,g}{1,2,3} styling, so you immediatly know what footers are attache to what header `setup-util-aria2`: - Fixed bad CLI detection Stylised: - `setup-go`, `setup-mac`, `setup-mac-brew,` `setup-util`, `setup-utils`, `setup-util-gocryptfs`
setup-update
and setup-install
processAdded VERBOSE mode. Only display success if QUIET=no (which is VERBOSE=yes)
`setup-util` now supports a `CMD` mode, which is now used by `setup-util-gocryptfs` to install itself This enabled commands that do their own installations to benefit from `setup-util`'s features and consistency
On homebrew systems, there could by multiple ruby versions installed, as dependencies of other packages. If this is the case, this commit forces the user to select a preference. It also removes opt/llvm gem handling, not sure why that was there, perhaps a bug. And simplifies code around when `RUBY_VERSION` is not specified yet, allowing graceful operation. Compiler flags will only now be provided for the selecte `RUBY_VERSION` install. Also achieves formatting changes for `setup-ruby`, so progress on #74
- `choose-basename` and `choose-expansion` were unused - `choose-path` upgraded for `choose-option` - `dark-mode` renamed to `macos-theme` and upgraded and fixed - remove `splitlines.bash` and `IFS= ` as they were unnecessary: https://unix.stackexchange.com/a/676876/50703 - remove `files-to-list`, it was unused, as is simple enough - remove `replace-inside`, it was unused, just use `sd` - cleaned `nullglob.bash` and `globstar.bash` remaining usage - improved `fs-absolute`, `what-is-using`, `macos-drive`, `macos-state`, `echo-subpaths` - added `echo-paths-and-basenames` - rejigged `TIPS.md` - fixed regression in `ask` from 5b6c078 - styled `setup-node` (progress #74)
Worth noting that a few commits ago added |
- move out `act` from `setup-util` into `echo-collapse` which can be run as a command, or sourced - added segment open and close styles to `echo-color` - redid `setup-python` to use these new styling abilities - disabled some irrelevant shellcheck issues in the headers of some files - added `echo-indent`, it isn't used yet, but perhaps could be one day Signed-off-by: Benjamin Lupton <b@lupton.cc>
New styling abilities have been added in f8ede3b and utilised by For
Into this:
I'm unsure why these lines were retained and had the footer added onto it, but can debug it later:
|
setup-rust now checks if rust is installed via brew, and if it is, prompts to remove it
It's a pity it isn't possible to do echo-segment 'do something' -- {
# do a bunch of things
} This may work however: {
# do a bunch of things
} | echo-segment 'do something' However, it would require special handling for exit codes and stderr, maybe: {
# do a bunch of things
} 2>&1 | echo-segment --collapse --piped 'do something' || echo-segment --elsed 'do something' Turns out this creates worse code: https://gist.github.com/balupton/8e86fbe8a97fb8def4e60143e62efbdb |
setup-rust now checks if rust is installed via brew, and if it is, prompts to remove it
most of the styling of the setup utils is done, but a few need a bunch of cleaning, and make use of the open and close syles, and |
- styled `setup-python` with `echo-segment` - fix `setup-node` break when NVM_DIR doesn't exist - styled `setup-node` - fix `eval-collapse` leaking local vars to global scope
prior styled commands have been updated to `echo-segment` too
I'll have this completed this week |
Changes: `setup-environment-commands`: - `GOPATH`, `GOROOT`, `GOBIN` are now created if `go` is present - Use bash `:=` trick to simplify some code - Use arrays to avoid issues with spaces in directories (this may cause issues with bash v3 on fresh macOS installations, needs testing) `setup-go`: - Fixed incorrect `goinstall` function, should have been `act`, but has been rewritten - Removed outdated linting tooling - Removed update all request, as that seems to have been deprecated in favour of requirement of `@latest` tooling `setup-util`: - Stylised and quiet and verbose logging support - Three logging modes, QUIET='', QUIET='no', QUIET='yes' - Added `OPTIONAL=yes` mode `setup-git`: - Optional dependencies now marked as optional via new `setup-util` `OPTIONAL=yes` ability `echo-color`: - Consistent {h,e,g}{1,2,3} styling, so you immediatly know what footers are attache to what header `setup-util-aria2`: - Fixed bad CLI detection Stylised: - `setup-go`, `setup-mac`, `setup-mac-brew,` `setup-util`, `setup-utils`, `setup-util-gocryptfs`
Added VERBOSE mode. Only display success if QUIET=no (which is VERBOSE=yes)
`setup-util` now supports a `CMD` mode, which is now used by `setup-util-gocryptfs` to install itself This enabled commands that do their own installations to benefit from `setup-util`'s features and consistency
On homebrew systems, there could by multiple ruby versions installed, as dependencies of other packages. If this is the case, this commit forces the user to select a preference. It also removes opt/llvm gem handling, not sure why that was there, perhaps a bug. And simplifies code around when `RUBY_VERSION` is not specified yet, allowing graceful operation. Compiler flags will only now be provided for the selecte `RUBY_VERSION` install. Also achieves formatting changes for `setup-ruby`, so progress on #74
- `choose-basename` and `choose-expansion` were unused - `choose-path` upgraded for `choose-option` - `dark-mode` renamed to `macos-theme` and upgraded and fixed - remove `splitlines.bash` and `IFS= ` as they were unnecessary: https://unix.stackexchange.com/a/676876/50703 - remove `files-to-list`, it was unused, as is simple enough - remove `replace-inside`, it was unused, just use `sd` - cleaned `nullglob.bash` and `globstar.bash` remaining usage - improved `fs-absolute`, `what-is-using`, `macos-drive`, `macos-state`, `echo-subpaths` - added `echo-paths-and-basenames` - rejigged `TIPS.md` - fixed regression in `ask` from 5b6c078 - styled `setup-node` (progress #74)
- move out `act` from `setup-util` into `echo-collapse` which can be run as a command, or sourced - added segment open and close styles to `echo-color` - redid `setup-python` to use these new styling abilities - disabled some irrelevant shellcheck issues in the headers of some files - added `echo-indent`, it isn't used yet, but perhaps could be one day Signed-off-by: Benjamin Lupton <b@lupton.cc>
setup-rust now checks if rust is installed via brew, and if it is, prompts to remove it
- styled `setup-python` with `echo-segment` - fix `setup-node` break when NVM_DIR doesn't exist - styled `setup-node` - fix `eval-collapse` leaking local vars to global scope
prior styled commands have been updated to `echo-segment` too
Completed via #105 and #94 |
I've updated several commands, but there are still a lot to go.
Completed:
alias-*
is-same
setup-go
setup-mac
setup-mac-brew
setup-util
setup-utils
setup-util-gocryptfs
We should start with the
setup-*
workflow and work backwards from there.The text was updated successfully, but these errors were encountered: