Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

expand capabilities for using dotnet try with URLs #217

Closed as not planned
Closed as not planned

Description

@jonsequitur

Currently, dotnet try --uri <uri> will allow you to try a URI or relative file path, showing the content of the file. It doesn't work with a directory (see #216).

Meanwhile, dotnet try <dir> does work with a target directory.

These behaviors should be unified and the --uri option removed in order to make the interface simpler and more consistent.

Additionally, we should add support for a few more scenarios, so that the total set of behaviors is as follows:

  • dotnet try /samples/dir: Launch dotnet try in the target directory.
  • dotnet try /samples/dir/readme.md: Launch the specified file in dotnet try.
  • dotnet try https://github.com/some/repo/wiki/overview: Launch the content at the specified URL in dotnet try.
  • dotnet try https://github.com/some/repo: Pull the latest code from the target repo and launch dotnet try in the directory into which the repo was downloaded.
  • dotnet try https://github.com/dotnet/samples/tree/master/csharp/language-reference/operators: Pull the latest code from the target repo and launch dotnet try in the appropriate subdirectory.
  • Same as the other GitHub examples but at specific commits.
  • dotnet try https://t.co/O2jvlmWlhL: Resolve the shortened URL and then perform the appropriate action from the above list.

Activity

  1. changed the title [-]expand capabilities of dotnet try --uri, unify with dotnet try <arg> [/-] [+]expand capabilities for using dotnet try with URLs[/+] on Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions