Coder Social home page Coder Social logo

marcelacarvalho / dotnet-commands Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lambda3/dotnet-commands

0.0 1.0 0.0 21 KB

A tool that allows you to use .NET Core apps as .NET CLI Commands.

Home Page: http://www.lambda3.com.br

License: Apache License 2.0

C# 93.43% Batchfile 0.43% PowerShell 6.14%

dotnet-commands's Introduction

.NET Commands

A tool that allows you to use .NET Core apps as .NET CLI Commands.

Nuget count License Issues open

This is a community project, free and open source. Everyone is invited to contribute, fork, share and use the code.

Installing

On Windows, run:

Powershell

&{$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression($wc.DownloadString('https://raw.githubusercontent.com/Lambda3/dotnet-commands/master/src/dotnet-commands/install.ps1'))}

CMD

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression($wc.DownloadString('https://raw.githubusercontent.com/Lambda3/dotnet-commands/master/src/dotnet-commands/install.ps1'))}"

On Linux, TBD.

Running

Simply run dotnet commands to see the options, which are similar to this:

DotNet Commands
  Usage:
    dotnet commands install <command> [--force] [--pre] [--verbose]
    dotnet commands uninstall <command> [ --verbose]
    dotnet commands update (<command> | all) [--pre] [--verbose]
    dotnet commands --help
    dotnet commands --version
  Options:
    --force                    Installs even if package was already installed. Optional.
    --pre                      Include pre-release versions. Optional.
    --verbose                  Verbose. Optional.
    --help -h                  Show this screen.
    --version -v               Show version.

You can try to install dotnet-foo, a library to try.

dotnet commands install dotnet-foo

And you can then use dotnet-foo like this:

dotnet foo

Writing commands

A more detailed explanation is comming. But the idea is simple, either create a Nuget which contains an executable (*.exe, *.ps1, or *.cmd) in the tools folder named dotnet-yourtool, or add a commandMetadata.json similar to the one in this project and add it to the content folder.

Status

We are still missing work on Linux and Mac, and only install works. PRs welcome.

Maintainers/Core team

Contributors can be found at the contributors page on Github.

Contact

Twitter is the best option.

License

This software is open source, licensed under the Apache License, Version 2.0. See LICENSE.txt for details. Check out the terms of the license before you contribute, fork, copy or do anything with the code. If you decide to contribute you agree to grant copyright of all your contribution to this project, and agree to mention clearly if do not agree to these terms. Your work will be licensed with the project at Apache V2, along the rest of the code.

dotnet-commands's People

Contributors

giggio avatar julianosaless avatar

Watchers

Marcela Carvalho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.