Skip to content

Commit

Permalink
Merge pull request #2 from PARADISSEEKR/jins-init
Browse files Browse the repository at this point in the history
Add new options
  • Loading branch information
zhoxing-ms committed Nov 22, 2021
2 parents ea5c3f2 + e39b00c commit 25cecaf
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/init/azext_init/_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
('core', 'output'): OUTPUT_LIST[0]['name'],
('core', 'collect_telemetry'): 'no',
('core', 'cache_ttl'): DEFAULT_CACHE_TTL,
('core', 'errors_only'): 'false',
('core', 'error_recommendations'): 'on',
('core', 'syntax_highlighting'): 'on',
('core', 'updates'): 'prompt',
('logging', 'enable_log_file'): 'yes'
}
79 changes: 79 additions & 0 deletions src/init/azext_init/_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,97 @@
}
]
},
{
"configuration": "core.errors_only",
"brief": "Standard error stream (stderr)",
"description": "",
"options": [
{
"name": "All events",
"value": "false",
"desc": "The stderr stream shows all events, including errors and system messages",
"tag": "default"
},
{
"name": "Errors only",
"value": "true",
"desc": "The stderr stream shows error messages only"
}
]
},
{
"configuration": "core.error_recommendations",
"brief": "Error output",
"description": "",
"options": [
{
"name": "Show recommendations",
"value": "on",
"desc": "Error message might include recommendations or Help links",
"tag": "default"
},
{
"name": "Hide recommendations",
"value": "off",
"desc": "Error messages will only show the error"
}
]
},
{
"configuration": "core.syntax_highlighting",
"brief": "Syntax highlighting",
"description": "",
"options": [
{
"name": "On",
"value": "on",
"desc": "Colored syntax highlighting. Easier for humans to read",
"tag": "default"
},
{
"name": "Off",
"value": "off",
"desc": "Monochrome text. Harder for humans to read"
}
]
},
{
"configuration": "core.updates",
"brief": "Updates",
"description": "",
"options": [
{
"name": "Ask first",
"value": "prompt",
"desc": "Azure CLI will ask you before installing available updates",
"tag": "default"
},
{
"name": "Automatic",
"value": "auto",
"desc": "Azure CLI will automatically install all available updates"
},
{
"name": "None",
"value": "none",
"desc": "Azure CLI will not notify you about available updates"
}
]
},
{
"configuration": "logging.enable_log_file",
"brief": "Enable logging to file",
"description": "Would you like to enable logging to file?",
"options": [
{
"name": "yes",
"value": "true",
"desc": "enable logging to file",
"tag": "default"
},
{
"name": "no",
"value": "false",
"desc": "not enable logging to file"
}
]
Expand Down

0 comments on commit 25cecaf

Please sign in to comment.