Commit graph

16 commits

Author SHA1 Message Date
Carlos Alexandro Becker
1133e5047b
fix: config failing in tests (#625)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-09 10:47:44 -03:00
Carlos Alexandro Becker
fe066f2140
feat: allow config from CHARM_CONFIG_HOME and XDG_CONFIG_HOME (#621)
* feat: allow config from CHARM_CONFIG_HOME

closes #594
closes #495
closes #328
closes #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>
2024-07-08 22:33:49 -03:00
Carlos Alexandro Becker
7e471f1787
fix: lint issue
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-03 13:05:46 -03:00
Carlos Alexandro Becker
fce3edf7db
feat!: cleanup and updated (#619)
* 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>
2024-07-03 12:11:29 -03:00
Carlos Alexandro Becker
c991ec475d
feat: use x/editor (#543)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-11-17 09:02:52 -03:00
Carlos Alexandro Becker
54dd62a2a4
fix: handle running inside a snap (#527)
* fix: handle running inside a snap

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: fixes

* docs: improve error message

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
2023-08-28 09:05:12 -03:00
Carlos Alexandro Becker
8b5468468a
fix: improve editor handling (#449)
* fix: improve editor handling

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* test: add tests

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-24 14:51:11 -03:00
Carlos A Becker
4dd3ba1d3c chore: fmt & lint issues 2022-11-11 02:14:26 +01:00
Christian Rocha
9c9b3e6087 Bump Bubble Tea, Bubbles, Glamour, Lip Gloss, and Termenv and do related updates
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>
2022-11-11 02:14:26 +01:00
Carlos Alexandro Becker
5f14914b7e
fix: editor with args (#364)
* fix: editor with args

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* Update config_cmd.go

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-25 15:35:12 -03:00
Christopher Murphy
e0d667a48c fix: use filepath.Dir instead of path.Dir
Use the `filepath` implementation of `Dir` instead of `path`. Resolve
path resolution with Windows paths containing `\\` separators.
2022-09-16 11:42:22 +02:00
Christian Muehlhaeuser
b67e23e7df
Update default config and documentation 2021-02-04 01:38:52 +01:00
Nicolas Martin
c5adc8fc2d
Saner default values in the defaultConfig 2020-10-26 21:02:54 +01:00
Nicolas Martin
858beaf143
Check for $EDITOR before writing the file 2020-10-26 21:02:09 +01:00
Nicolas Martin
4b4fb783d2
Open the configuration file with $EDITOR via 'glow config' 2020-10-26 20:21:38 +01:00
Christian Rocha
7a700d2511
Stub out config sub-command 2020-10-26 12:21:23 -04:00