Skip to content

Added changes for clu helps #1656

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 6 commits into from
Jan 15, 2016
Merged

Added changes for clu helps #1656

merged 6 commits into from
Jan 15, 2016

Conversation

arroyc
Copy link

@arroyc arroyc commented Jan 14, 2016

added changes needed for finding helps/commands etc for clui

@azurecla
Copy link

Hi @arroyc, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!


It looks like you're working at Microsoft (arroyc). If you're full-time, we DON'T require a contribution license agreement.



If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

private void PresentCommandHelp(ICommandBinder commandBinder, string[] arguments, bool prefix)
private void PresentCommandCompletion(string[] arguments)
{
foreach (var cmd in Help.CommandDispatchHelper.CompleteCommands(CLUEnvironment.GetPackagesRootPath(), arguments).OrderBy((cmd) => cmd.Commandline))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line breaks

{
// BUGBUG - NYI!
if (arguments.Length == 0)
{
var concatenatedArgs = string.Join(" ", arguments);
Console.WriteLine($"Look up help corresponding to the arguments '{concatenatedArgs}'");
Console.WriteLine("TODO: Present help for Azure itself...");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't thinkw e should write this to the console: let's put a TODO comment in the code instead

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed .. I thought .. for demo we wanted it specifically to be in command prompt

@markcowl
Copy link
Member

@arroyc A couple of changes.

markcowl added a commit that referenced this pull request Jan 15, 2016
Added changes for clu helps
@markcowl markcowl merged commit 6bb4338 into Azure:clu Jan 15, 2016
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.

3 participants