Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Run C# programs from gists or remote repositories

License

Notifications You must be signed in to change notification settings

devlooped/runcs

Icon dnx runcs

Version Downloads License Build

dnx runcs

Run C# code programs from git repos on GitHub, GitLab and Azure DevOps.

Usage:
    [dnx] runcs <repoRef> [<appArgs>...]

Arguments:
    <REPO_REF>  Reference to remote file to run, with format [host/]owner/repo[@ref][:path]
                host optional host name ([gist.]github.com|gitlab.com|dev.azure.com, default: github.com)
                @ref optional branch, tag, or commit (default: default branch)
                :path optional path to file in repo (default: program.cs at repo root)

                Examples:
                * kzu/[email protected]:run.cs           (implied host github.com, explicit tag and file path)
                * gitlab.com/kzu/sandbox@main:run.cs  (all explicit parts)
                * kzu/sandbox                         (implied host github.com, ref and path defaults)

    <appArgs>   Arguments passed to the C# program that is being run.

Example:

dnx runcs kzu/runcs@v1:run.cs dotnet rocks

View source.

Tip

The repo does not need to be public. In that case, the same authentication used by your local git will be used to access the gist, via the Git Credential Manager.

When running different files from the same repo+ref, the download will be performed only once. The last download etag is used to avoid downloading on each run.

dnx gist

Run C# code programs from GitHub gists.

Usage: [dnx] gist <gistRef> [<appArgs>...]
    <GIST_REF>  Reference to gist file to run, with format owner/gist[@commit][:path]
                @commit optional gist commit (default: default branch)
                :path optional path to file in gist (default: program.cs or first .cs file)

                Examples:
                * kzu/0ac826dc7de666546aaedd38e5965381                 (tip commit and program.cs or first .cs file)
                * kzu/0ac826dc7de666546aaedd38e5965381@d8079cf:run.cs  (explicit commit and file path)

    <appArgs>   Arguments passed to the C# program gist that is being run.

Tip

The gist does not need to be public. In that case, the same authentication used by your local git will be used to access the gist, via the Git Credential Manager.

Example:

dnx gist kzu/52b115ce24c7978ddc33245d4ff840f5 dotnet rocks

View source gist.

When running different files from the same repo+ref, the download will be performed only once. The last download etag is used to avoid downloading on each run.

Dogfooding

CI Version

We also produce CI packages from branches and pull requests so you can dogfood builds as quickly as they are produced.

The CI feed is https://pkg.kzu.app/index.json.

The versioning scheme for packages is:

  • PR builds: 42.42.[run]-pr[NUMBER]
  • Branch builds: 42.42.[run]-[BRANCH]

Sponsors

Clarius Org MFB Technologies, Inc. DRIVE.NET, Inc. Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Uno Platform Reuben Swartz Jacob Foshee Eric Johnson David JENNI Jonathan Charley Wu Ken Bonny Simon Cropp agileworks-eu Zheyu Shen Vezel ChilliCream 4OTC Vincent Limo Jordan S. Jones domischell Justin Wendlandt Adrian Alonso Michael Hagedorn torutek Ryan McCaffery

Sponsor this project  

Learn more about GitHub Sponsors

About

Run C# programs from gists or remote repositories

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project