rossmacarthur / sheldon

:bowtie: Fast, configurable, shell plugin manager
https://sheldon.cli.rs
Apache License 2.0
958 stars 21 forks source link

Fix: deprecated filter warning message #168

Closed granddaifuku closed 6 months ago

granddaifuku commented 6 months ago

Overview

Currently, a warning message about the deprecated filter get is displayed as follows:

warning: use of deprecated filter `get` in [templates], please use the `?.` operator instead.
For example: `{{ hooks | get: "pre" | nl }}` can be written `{{ hook?.pre | nl }}`

However, I believe {{ hooks | get: "pre" | nl }} can be converted to {{ hooks?.pre | nl }} (not hook but hooks), and I've made this adjustment.

By the way, thank you for the fantastic shell plugin manager!

rossmacarthur commented 6 months ago

Thanks! My bad