Skip to content

Ask for a new project step by step in ash init - #10

Merged
S42yt merged 1 commit into
masterfrom
feat/init-wizard
Oct 16, 2026
Merged

S42yt merged 1 commit into
masterfrom
feat/init-wizard

Conversation

@S42yt

@S42yt S42yt commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

ash init asks step by step

Running ash init without a name in a terminal now starts a wizard:

Create a new Burn project
Press Enter to accept the suggestion in parentheses.

? Package name (github.com/you/my-project)
? What do you want to create?
  › 1 app       a program you run
    2 lib       a package others import
    3 workspace a shared library and one app per target
? What should `ash build` make?
  › 1 native    an executable for this computer
    2 js        a JavaScript file for Node.js
    3 bvm       portable bytecode (.bvmc)
    4 bar       a runnable archive (.bar)
? Directory (my-project)
? Create a git repository? (Y/n)

This will create
  package   github.com/you/my-project
  kind      app, built as native
  in        my-project/
  git       a new repository

? Create it? (Y/n)
     Created github.com/you/my-project in my-project/

Next steps
  cd my-project
  ash start     run it
  ash build     build it into build/
  ash test      run the tests
  ash install <name>   add a package

Answers

  • Every question has a default. The suggested name comes from git config github.user (or the git user name) and the folder.
  • A name that isn't a valid package name is explained (validName/nameHelp) and asked again.
  • Choices take a number or the option's name.
  • The answers become burn init arguments (--lib, --workspace, --target, --no-git, the directory).

When it runs

  • ash init <name> ... works exactly as before.
  • -i/--interactive forces the wizard, for example with piped answers; that's how the test drives it.
  • Without a name and without a terminal, ash keeps the old usage message.
  • Declining at the end creates nothing and exits 0.

Tests

  • tests/e2e.sh covers the wizard: an invalid name answered again, a library without git, and a declined plan that creates nothing.
  • burni tests/main.bn and sh tests/e2e.sh pass with Burn 26.1.0-experimental-8.
  • burn build builds build/ash, and burn fmt --check is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w


Generated by Claude Code

ash init without a name asks for the package name, what to create (app,
library or workspace), the build target, the directory and whether to create a
git repository, each with a suggestion, shows what it will create and asks to
confirm. ash init <name> works as before, and -i asks even with piped input.
@S42yt
S42yt merged commit 32a619a into master Oct 16, 2026
1 check passed
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.

1 participant