{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/cli/pulls/comments/90983347","pull_request_review_id":11495357,"id":90983347,"diff_hunk":"@@ -0,0 +1,34 @@\n+﻿// Copyright (c) .NET Foundation and contributors. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+using System;\n+using System.Collections.Generic;\n+using Microsoft.DotNet.Tools.List.ProjectToProjectReferences;\n+\n+namespace Microsoft.DotNet.Tools.List\n+{\n+    public class ListCommand : DispatchCommand\n+    {\n+        protected override string HelpText => @\".NET List Command\n+\n+Usage: dotnet list [options] <object> <command> [[--] <arg>...]]\n+\n+Options:\n+  -h|--help  Show help information\n+\n+Arguments:\n+  <object>   The object of the operation. If a project file is not specified, it defaults to the current directory.\n+  <command>  Command to be executed on <object>.\n+\n+Args:\n+  Any extra arguments passed to the command. Use `dotnet list <command> --help` to get help about these arguments.\n+\n+Commands:\n+  p2ps       List project to project (p2p) references to a project\";","path":"src/dotnet/commands/dotnet-list/Program.cs","position":null,"original_position":27,"commit_id":"d7dae7a4ea052ebdb198fb6ea67d2a40b8d386f1","original_commit_id":"986644951a153317ae60144f8540de98ebd2f1da","user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"body":"to a project? or from a project?","created_at":"2016-12-05T23:48:03Z","updated_at":"2016-12-05T23:48:03Z","html_url":"https://github.com/dotnet/cli/pull/4929#discussion_r90983347","pull_request_url":"https://api.github.com/repos/dotnet/cli/pulls/4929","_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments/90983347"},"html":{"href":"https://github.com/dotnet/cli/pull/4929#discussion_r90983347"},"pull_request":{"href":"https://api.github.com/repos/dotnet/cli/pulls/4929"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/cli/pulls/4929","id":96617785,"html_url":"https://github.com/dotnet/cli/pull/4929","diff_url":"https://github.com/dotnet/cli/pull/4929.diff","patch_url":"https://github.com/dotnet/cli/pull/4929.patch","issue_url":"https://api.github.com/repos/dotnet/cli/issues/4929","number":4929,"state":"open","locked":false,"title":"[WIP - for preview] add stub for dotnet list p2ps","user":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"body":"This is for preview since there is not much to test in here except for user experience.\r\n\r\nThis is currently displaying practically `<ProjectReference Include=\"([^\"]*)\"` (I'm not using regex though)\r\n\r\nExample output:\r\n```\r\nd:\\cli\\src\\dotnet>dotnet list p2ps\r\nProject reference\r\n-----------------\r\n../Microsoft.DotNet.Configurer/Microsoft.DotNet.Configurer.csproj\r\n../Microsoft.DotNet.ProjectJsonMigration/Microsoft.DotNet.ProjectJsonMigration.csproj\r\n../Microsoft.DotNet.InternalAbstractions/Microsoft.DotNet.InternalAbstractions.csproj\r\n../Microsoft.DotNet.Archive/Microsoft.DotNet.Archive.csproj\r\n../Microsoft.DotNet.Cli.Utils/Microsoft.DotNet.Cli.Utils.csproj\r\n```\r\n\r\nOpen questions:\r\n- As showed in example above we use forward slashes in our project while when `dotnet add p2p` is being called we convert them to backward - copy & paste of above will always work with `dotnet remove p2p` regardless of slashes - should we convert them here too?\r\n- Should paths stay as they are in the include, absolute or relative? (to what? cwd or project?) - `dotnet remove p2p` will work with all three formats so whichever we display it should be copy & pasteable\r\n- Should we display condition: if yes in what format - from my experience displaying localized columns is usually not working nicely when working with right-to-left languages as you have to switch columns and pad to right - I'd have hard time testing this as I'm not sure how console behaves in that locales (it might just do some of that work for me) - i don't want us to end up with implementing half of the command line text editor in here","created_at":"2016-12-05T21:59:21Z","updated_at":"2016-12-05T23:51:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a2c4098bc539fcf353f5ec2c506dee14b225d04","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/cli/pulls/4929/commits","review_comments_url":"https://api.github.com/repos/dotnet/cli/pulls/4929/comments","review_comment_url":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4929/comments","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/d7dae7a4ea052ebdb198fb6ea67d2a40b8d386f1","head":{"label":"krwq:i4746-dotnet-list","ref":"i4746-dotnet-list","sha":"d7dae7a4ea052ebdb198fb6ea67d2a40b8d386f1","user":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"repo":{"id":46476858,"name":"cli","full_name":"krwq/cli","owner":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krwq/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":true,"url":"https://api.github.com/repos/krwq/cli","forks_url":"https://api.github.com/repos/krwq/cli/forks","keys_url":"https://api.github.com/repos/krwq/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krwq/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krwq/cli/teams","hooks_url":"https://api.github.com/repos/krwq/cli/hooks","issue_events_url":"https://api.github.com/repos/krwq/cli/issues/events{/number}","events_url":"https://api.github.com/repos/krwq/cli/events","assignees_url":"https://api.github.com/repos/krwq/cli/assignees{/user}","branches_url":"https://api.github.com/repos/krwq/cli/branches{/branch}","tags_url":"https://api.github.com/repos/krwq/cli/tags","blobs_url":"https://api.github.com/repos/krwq/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krwq/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krwq/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/krwq/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krwq/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/krwq/cli/languages","stargazers_url":"https://api.github.com/repos/krwq/cli/stargazers","contributors_url":"https://api.github.com/repos/krwq/cli/contributors","subscribers_url":"https://api.github.com/repos/krwq/cli/subscribers","subscription_url":"https://api.github.com/repos/krwq/cli/subscription","commits_url":"https://api.github.com/repos/krwq/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/krwq/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/krwq/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/krwq/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/krwq/cli/contents/{+path}","compare_url":"https://api.github.com/repos/krwq/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krwq/cli/merges","archive_url":"https://api.github.com/repos/krwq/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krwq/cli/downloads","issues_url":"https://api.github.com/repos/krwq/cli/issues{/number}","pulls_url":"https://api.github.com/repos/krwq/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/krwq/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/krwq/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krwq/cli/labels{/name}","releases_url":"https://api.github.com/repos/krwq/cli/releases{/id}","deployments_url":"https://api.github.com/repos/krwq/cli/deployments","created_at":"2015-11-19T07:56:22Z","updated_at":"2016-02-12T19:10:35Z","pushed_at":"2016-12-05T22:54:53Z","git_url":"git://github.com/krwq/cli.git","ssh_url":"git@github.com:krwq/cli.git","clone_url":"https://github.com/krwq/cli.git","svn_url":"https://github.com/krwq/cli","homepage":"http://dotnet.github.io/","size":26325,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:rel/1.0.0","ref":"rel/1.0.0","sha":"7a0d3e255a185e0b86bf9acb31d565a0f9d9802b","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":43568107,"name":"cli","full_name":"dotnet/cli","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":false,"url":"https://api.github.com/repos/dotnet/cli","forks_url":"https://api.github.com/repos/dotnet/cli/forks","keys_url":"https://api.github.com/repos/dotnet/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/cli/teams","hooks_url":"https://api.github.com/repos/dotnet/cli/hooks","issue_events_url":"https://api.github.com/repos/dotnet/cli/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/cli/events","assignees_url":"https://api.github.com/repos/dotnet/cli/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/cli/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/cli/tags","blobs_url":"https://api.github.com/repos/dotnet/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/cli/languages","stargazers_url":"https://api.github.com/repos/dotnet/cli/stargazers","contributors_url":"https://api.github.com/repos/dotnet/cli/contributors","subscribers_url":"https://api.github.com/repos/dotnet/cli/subscribers","subscription_url":"https://api.github.com/repos/dotnet/cli/subscription","commits_url":"https://api.github.com/repos/dotnet/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/cli/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/cli/merges","archive_url":"https://api.github.com/repos/dotnet/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/cli/downloads","issues_url":"https://api.github.com/repos/dotnet/cli/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/cli/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/cli/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/cli/deployments","created_at":"2015-10-02T18:03:15Z","updated_at":"2016-12-05T13:51:54Z","pushed_at":"2016-12-05T23:47:48Z","git_url":"git://github.com/dotnet/cli.git","ssh_url":"git@github.com:dotnet/cli.git","clone_url":"https://github.com/dotnet/cli.git","svn_url":"https://github.com/dotnet/cli","homepage":"https://docs.microsoft.com/dotnet/ ","size":123575,"stargazers_count":1625,"watchers_count":1625,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":450,"mirror_url":null,"open_issues_count":527,"forks":450,"open_issues":527,"watchers":1625,"default_branch":"rel/1.0.0"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/4929"},"html":{"href":"https://github.com/dotnet/cli/pull/4929"},"issue":{"href":"https://api.github.com/repos/dotnet/cli/issues/4929"},"comments":{"href":"https://api.github.com/repos/dotnet/cli/issues/4929/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/cli/pulls/4929/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/cli/pulls/4929/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/cli/statuses/d7dae7a4ea052ebdb198fb6ea67d2a40b8d386f1"}}}}
{"actor":{"display_login":"piotrpMSFT"}}