winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.02k stars 198 forks source link

Allow configuring App ID through `wing.toml` and create a unique one for each new app #6709

Open eladb opened 4 months ago

eladb commented 4 months ago

Use Case

It will behoove us for each Wing app to have a unique-ish root identifier. Since the root identifier is the basis for calculating all other generated names.

Currently we have a --rootId|-r option in the CLI, but this is not persistent.

Proposed Solution

Here's the proposed DX.

1) Allow specifying appid in wing.toml:

appid = "my-beautiful-app"

2) When wing new is executed, generate an appid based on the directory name and some random component:

$ mkdir you-are-awesome
$ cd you-are-awesome
$ wing new empty
$ cat wing.toml
appid = "you-are-awesome-ad837a"

Implementation Notes

No response

Component

No response

Community Notes

github-actions[bot] commented 3 weeks ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!