Skip to content

Commit 0bf8dc9

Browse files
committed
add hatch config edit command
1 parent d81790e commit 0bf8dc9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/hatch/cli/config/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ def config():
88
pass
99

1010

11+
@config.command(short_help="Open the config file in your configured terminal editor")
12+
@click.pass_obj
13+
def edit(app):
14+
"""Open the config file in your configured terminal editor."""
15+
click.edit(filename=str(app.config_file.path))
16+
17+
1118
@config.command(short_help='Open the config location in your file manager')
1219
@click.pass_obj
1320
def explore(app):

0 commit comments

Comments
 (0)