Skip to content

Commit 4da46e4

Browse files
committed
add edit config command
1 parent f937ffc commit 4da46e4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import click
22

3+
from shelloracle.cli.config.edit import edit
34
from shelloracle.cli.config.init import init
45

56

67
@click.group()
78
def config(): ...
89

910

11+
config.add_command(edit)
1012
config.add_command(init)

src/shelloracle/cli/config/edit.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import click
2+
3+
4+
@click.command()
5+
def edit():
6+
"""Edit shelloracle configuration."""
7+
click.edit(filename='/tmp/test')

0 commit comments

Comments
 (0)