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

CLI UX improvements and build system revamp #960

Closed
18 tasks done
alecthomas opened this issue Feb 21, 2024 · 1 comment
Closed
18 tasks done

CLI UX improvements and build system revamp #960

alecthomas opened this issue Feb 21, 2024 · 1 comment
Labels
epic An umbrella topic

Comments

@alecthomas
Copy link
Collaborator

alecthomas commented Feb 21, 2024

Use cases

Echo/time example

  1. Build system loads dependency graph (fast-path extraction):

     echo -> time
     time
    
  2. Builds time, extracting schema to time/_ftl/schema.pb

  3. Build tool loads the schema.

  4. Start building echo

  5. Code-gens Kotlin stubs for time based on dependency graph

  6. Build Kotlin

Unit tests/CI

ftl build          # Just works
go test ./...     # Just works

Integration tests/CI

ftl serve --background --recreate
ftl deploy  # Waits for modules to deploy
go test -tags integration ./...
ftl serve --stop

Interactive development

ftl dev
# Profit

Non-interactive development

ftl build
# Profit
@alecthomas alecthomas added the epic An umbrella topic label Feb 21, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Feb 21, 2024
@alecthomas alecthomas removed the triage Issue needs triaging label Feb 22, 2024
@KendallWeihe
Copy link
Contributor

KendallWeihe commented Feb 28, 2024

Could we introduce a command to stop/restart the background cluster? Rather than having to ps aux | grep ftl and kill -9 it, we could do something like ftld stop ("d" for daemon? idk just spitballing to illustrate the idea)


Edit: this already exists, ftl serve --stop

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

No branches or pull requests

3 participants