-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: open cmd #4707
base: main
Are you sure you want to change the base?
feat: open cmd #4707
Conversation
@@ -69,6 +69,7 @@ type SharedCLI struct { | |||
Goose gooseCmd `cmd:"" help:"Run a goose command."` | |||
Mysql mySQLCmd `cmd:"" help:"Manage MySQL databases."` | |||
Postgres postgresCmd `cmd:"" help:"Manage PostgreSQL databases."` | |||
Open openCmd `cmd:"" help:"Open a file in the editor at the location of a schema declaration."` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh reword this like a human
TerminalProgram string `help:"Terminal program this command is running in which can influence 'auto' editor" env:"TERM_PROGRAM" hidden:""` | ||
TerminalEmulator string `help:"Terminal emulator can influence 'auto' editor" env:"TERMINAL_EMULATOR" hidden:""` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wut?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yehhh just reading envars to determine if the user is inside VSCode or IntelliJ terminals. Each editor indicates it in different ways. Got a better idea?
ftl open <ref> <editor>
Editors:
vscode
intellij
Editor is autodetected within vscode and intellij terminals.
TODO: