-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Generate custom container name on empty input #40432
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
da43845
name generation
yao-msft b5e2e96
retry
yao-msft 5bc0f29
resolve conflicts locally
yao-msft cdafc68
fallback
yao-msft 2ca4af4
generate in session
yao-msft bd9e386
move
yao-msft 4303787
test
yao-msft 270ac4f
clang
yao-msft 9d191f0
improve
yao-msft e072102
comments
yao-msft 410bd4a
clang
yao-msft f5ca10e
comments
yao-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| /*++ | ||
|
|
||
| Copyright (c) Microsoft. All rights reserved. | ||
|
|
||
| Module Name: | ||
|
|
||
| ContainerNameGenerator.h | ||
|
|
||
| Abstract: | ||
|
|
||
| Constants for auto generated container names. | ||
|
|
||
| --*/ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <array> | ||
|
|
||
| namespace wsl::windows::service::wslc { | ||
|
|
||
| constexpr std::array c_descriptors = { | ||
| "swift", "bold", "misty", "golden", "rugged", "serene", "mighty", "noble", "silent", "ancient", | ||
| "bright", "calm", "crisp", "daring", "eager", "fierce", "gentle", "hidden", "icy", "jade", | ||
| "keen", "lofty", "majestic", "nimble", "proud", "quiet", "radiant", "snowy", "stellar", "tranquil", | ||
| "untamed", "vast", "wandering", "wild", "azure", "blazing", "cloudy", "dusty", "emerald", "frosty", | ||
| "gleaming", "hazy", "ivory", "jovial", "luminous", "mossy", "northern", "onyx", "peaceful", "rustic", | ||
| "shimmering", "twilight", "verdant", "whispering", "zephyr", | ||
| }; | ||
|
|
||
| constexpr std::array c_mountains = { | ||
| // Asia | ||
| "himalaya", | ||
| "karakoram", | ||
| "hindukush", | ||
| "pamirs", | ||
| "tienshan", | ||
| "kunlun", | ||
| "altai", | ||
| "zagros", | ||
| "elburz", | ||
| "caucasus", | ||
| "annamite", | ||
| // Europe | ||
| "alps", | ||
| "pyrenees", | ||
| "carpathian", | ||
| "apennine", | ||
| "balkan", | ||
| "dinaric", | ||
| "scandinavian", | ||
| "dolomites", | ||
| "urals", | ||
| // North America | ||
| "rockies", | ||
| "appalachian", | ||
| "sierra", | ||
| "cascade", | ||
| "olympic", | ||
| "brooks", | ||
| "alaska", | ||
| "ozark", | ||
| "adirondack", | ||
| "catskill", | ||
| "bighorn", | ||
| "bitterroot", | ||
| "sawtooth", | ||
| "teton", | ||
| "wasatch", | ||
| "sangre", | ||
| "uinta", | ||
| "absaroka", | ||
| "beartooth", | ||
| "laramie", | ||
| "medicine", | ||
| // South America | ||
| "andes", | ||
| "cordillera", | ||
| // Africa | ||
| "atlas", | ||
| "drakensberg", | ||
| "rwenzori", | ||
| "simien", | ||
| "virunga", | ||
| "tibesti", | ||
| "ahaggar", | ||
| // Oceania | ||
| "dividing", | ||
| "macdonnell", | ||
| "flinders", | ||
| "stirling", | ||
| // Antarctica | ||
| "transantarctic", | ||
| "ellsworth", | ||
| }; | ||
|
|
||
| } // namespace wsl::windows::service::wslc | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.