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

Fix/review ftl init and ftl new command behaviors #3924

Closed
3 tasks done
wesbillman opened this issue Jan 7, 2025 · 0 comments · Fixed by #3930
Closed
3 tasks done

Fix/review ftl init and ftl new command behaviors #3924

wesbillman opened this issue Jan 7, 2025 · 0 comments · Fixed by #3930
Assignees

Comments

@wesbillman
Copy link
Collaborator

wesbillman commented Jan 7, 2025

A couple things we noticed in the demo video and want to fix/review.

  • ftl init should create a new directory for a project (vs. having to mkdir then cd then ftl init
ftl init <project name> [folder name]

Examples:
  ftl init my-app        # Creates a new folder named "my-app" and initializes it.
  ftl init my-app .      # Initializes the current directory as "my-app".
  ftl init my-app custom # Creates a folder named "custom" and initializes it as "my-app".

  • ftl new go seemed to print out some debug messages. Check into why that is happening...
  • Update current docs as needed to reflect these changes (both cli docs and docs docs)
@wesbillman wesbillman self-assigned this Jan 7, 2025
@alecthomas alecthomas mentioned this issue Jan 7, 2025
wesbillman added a commit that referenced this issue Jan 8, 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](https://github.com/user-attachments/assets/1f0c70c2-2d7d-4399-ac5b-f23a567c13a8)
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 a pull request may close this issue.

1 participant