Skip to content

Support async command validate() - #977

Merged
cb1kenobi merged 1 commit into
mainfrom
async-validate-support
Aug 22, 2026
Merged

Support async command validate()#977
cb1kenobi merged 1 commit into
mainfrom
async-validate-support

Conversation

@cb1kenobi

@cb1kenobi cb1kenobi commented Aug 21, 2026

Copy link
Copy Markdown
Member

It's time to support async validate() in commands. Currently, validate() returns a function that gets called with a callback. This was because I didn't have the foresight 15 years ago to make it async until it was too late.

Anyways, the CLI rewrite unlocked async/await and this should have been done a while ago.

Tested:

  • Create app project
    • ti create --sdk 13.4.0.GA
    • ti create --sdk 14.0.0 (main)
  • Clean app project (both 13.4.0.GA and 14.0.0 apps)
    • ti clean
  • Build app project (both 13.4.0.GA and 14.0.0 apps)
    • ti build -p android --build-only
    • ti build -p ios --build-only
  • Get app project details (both 13.4.0.GA and 14.0.0)
    • ti project
  • Create module project
    • ti create --sdk 13.4.0.GA --type module
    • ti create --sdk 14.0.0 --type module (main)
  • Build module project
    • ti build -p android --sdk 13.4.0.GA
    • ti build -p android --sdk 14.0.0
    • ti build -p ios --sdk 13.4.0.GA
    • ti build -p ios --sdk 14.0.0

@m1ga

m1ga commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Working fine! Tested:

  • ti build, build-only (module, app)
  • ti create (module, app)
  • ti build, to device (module, app)
  • ti build, with --sdk
  • ti info
  • ti clean
  • ti config
  • ti project (not sure all these properties are used at all 😄 have to check if e.g. url is even used or if that was just for appc)

@cb1kenobi
cb1kenobi merged commit fc752cc into main Aug 22, 2026
12 checks passed
@cb1kenobi
cb1kenobi deleted the async-validate-support branch August 22, 2026 15:28
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.

2 participants