Skip to content
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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

feat: open cmd #4707

wants to merge 3 commits into from

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Feb 27, 2025

ftl open <ref> <editor>

Editors:

  • vscode
  • intellij

Editor is autodetected within vscode and intellij terminals.

TODO:

  • Fix file paths
  • Improve error handling
  • Other editors?

@@ -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."`
Copy link
Collaborator Author

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

Comment on lines +25 to +26
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:""`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants