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: ftl new and ftl init updates #3930

Merged
merged 4 commits into from
Jan 8, 2025
Merged

Conversation

wesbillman
Copy link
Collaborator

@wesbillman wesbillman commented Jan 7, 2025

Fixes #3924

Automatically create project folder and update help:

Usage: ftl init <name> [<dir>] [flags]

Initialize a new FTL project.

Examples:

    ftl init myproject        # Creates a new folder named "myproject" and initializes it
    ftl init myproject .      # Initializes the current directory as "myproject"
    ftl init myproject custom # Creates a folder named "custom" and initializes it as "myproject"

Creating a new ftl project will provide some help to the user as well:

ftl init myproject

Successfully created FTL project 'myproject' in myproject

To get started:
  cd myproject
  ftl dev

And update docs site:
Screenshot 2025-01-07 at 2 51 23 PM

@wesbillman wesbillman requested a review from alecthomas as a code owner January 7, 2025 21:52
@github-actions github-actions bot changed the title Ftl new and init updates feat: Ftl new and init updates Jan 7, 2025
This was referenced Jan 7, 2025
@wesbillman wesbillman requested review from Copilot and removed request for alecthomas January 7, 2025 21:52

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

frontend/cli/cmd_init.go:60

  • The error message should include the directory name to provide more context. Suggestion: return fmt.Errorf("failed to create directory %s: %w", i.Dir, err)
return fmt.Errorf("failed to create directory: %w", err)
@wesbillman wesbillman force-pushed the ftl-new-and-init-updates branch from de366af to 9fa153a Compare January 7, 2025 21:55
@wesbillman wesbillman changed the title feat: Ftl new and init updates feat: ftl new and ftl init updates Jan 7, 2025
@wesbillman wesbillman force-pushed the ftl-new-and-init-updates branch from 9fa153a to 05c6e70 Compare January 7, 2025 22:55
@wesbillman wesbillman merged commit b2946fb into main Jan 8, 2025
62 checks passed
@wesbillman wesbillman deleted the ftl-new-and-init-updates branch January 8, 2025 01:12
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.

Fix/review ftl init and ftl new command behaviors
1 participant