Skip to content

Commit 98e1a6f

Browse files
committed
Add concore editor to CLI
1 parent 785b58c commit 98e1a6f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

concore_cli/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def editor():
171171
"""Launch concore-editor"""
172172
try:
173173
from .commands.editor import launch_editor
174+
174175
launch_editor()
175176
except Exception as e:
176177
console.print(f"[red]Error:[/red] {str(e)}")

concore_cli/commands/editor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import click
21
import os
32
import sys
43
import shutil
54
import subprocess
6-
import urllib.parse
7-
from pathlib import Path
85
from rich.console import Console
96

107
console = Console()
118
EDITOR_URL = "https://controlcore-project.github.io/concore-editor/"
129

10+
1311
def open_editor_url(url):
1412
try:
1513
if sys.platform == "win32":
@@ -28,6 +26,7 @@ def open_editor_url(url):
2826
except Exception as e:
2927
console.print(f"unable to open browser for the concore editor. ({e})")
3028

29+
3130
def launch_editor():
3231
console.print("[cyan]Opening concore-editor...[/cyan]")
3332
open_editor_url(EDITOR_URL)

0 commit comments

Comments
 (0)