* feat: updating glamour
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: trim space
* chore: bump
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* chore(deps): bump
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: perms
* fix: improve logs
* feat: update glamour
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* feat: updating glamour
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: trim space
* chore: bump
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* chore(deps): bump
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* ci: run govulncheck, semgrep, etc
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: error check
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* Use GitHub API to find readme filename
* Fix lint errors and typos
* Bring back "tries to find" instead of "finds"
* Rename `readmeURL` to `apiURL`
* Don't close body
* Use GitLab API to find readme filename
* feat: improve gitlab/github readme url
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: danielwerg <35052399+danielwerg@users.noreply.github.com>
* feat: allow config from CHARM_CONFIG_HOME
closes#594closes#495closes#328closes#475
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: improvements on config handling
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* chore: log
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: check other possible readme paths/branches
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: url
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* fix: Readme.md
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* feat!: cleanup
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* more cleanup
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: more cleanup
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: more cleanup
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This update also removes any usage of the charm/common package
Co-authored-by: Christian Rocha <christian@rocha.is>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Use the latter directly and avoid a
direct dependency on the former.
The combination of Viper & go-app-paths lets us detect a config file
'glow.yml' in various default config paths (XDG-compliant), across all
platforms.
Currently there are only two configuration values:
local: true
style: "/some/style.json"
Additionally, this introduces mapping environment variables to config
values:
GLOW_LOCAL="true"
GLOW_STYLE="/some/style.json"
The values will be used in this order:
CLI-arg > ENV-var > config file > default