Skip to content

Commit

Permalink
fix: add ftl-project.toml to init command
Browse files Browse the repository at this point in the history
Also add a readme to help people get started with the project.
  • Loading branch information
stuartwdouglas committed Dec 18, 2024
1 parent 0fca476 commit 0e2ed27
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/cli/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ func (i initCmd) Run(
if err := maybeGitAdd(ctx, i.Dir, ".ftl-project"); err != nil {
return fmt.Errorf("git add .ftl-project: %w", err)
}
if err := maybeGitAdd(ctx, i.Dir, "ftl-project.toml"); err != nil {
return fmt.Errorf("git add ftl-project.toml: %w", err)
}
if err := maybeGitAdd(ctx, i.Dir, "README.md"); err != nil {
return fmt.Errorf("git add README.md: %w", err)
}
}
return nil
}
Expand Down
14 changes: 14 additions & 0 deletions internal/projectinit/scaffolding/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Welcome to your new FTL Project!

Now you have a project you can start to add modules.
You can add a new Kotlin module called `hello` by running one of the
language specific commands below:

```shell
ftl new kotlin . hello
ftl new go . hello
ftl new java . hello
```

For more information on how to get started and what to do next please
checkout the [FTL documentation](https://block.github.io/ftl/).

0 comments on commit 0e2ed27

Please sign in to comment.