Giter Club home page Giter Club logo

dotnet-exec's People

Contributors

ivanparvaresh avatar loremfoobar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotnet-exec's Issues

`execute` is quite verbose

It would be great to run commands via just dotnet exec too to save the fingers.

(Love the concept btw. Coming back to .NET after a while of node, I was looking for something like npm scripts)

Able to pass argument to command

As Developer, We need to pass extra arguments to the command

Acceptance Criteria

  • User should be able to execute dotnet execute [command-name] params

configuration file initiator command

Summary

needed to have .dotnetexec.json empty file creator.

Detail

by using dotnet execute config-init should create an empty configuration file

Cannot use with cross-platform bash scripts

We currently have a set of .sh bash scripts which we've tweaked to work fine on both linux environments directly and bash on Windows.

It seems entrypoint can either be explicit and platform specific (e.g. /bin/bash) or not specified, in which case it auto-detects.

However neither of these options allow us to use cross-platform bash scripts.

Perhaps the Windows default of cmd.exe is a little presumptuous too, as I expect a large percentage of scripts on windows would be powershell (or bash). Also the defined scripts are written with a specific shell in mind, so running on different shells by default on different platforms, doesn't lend itself to cross-platform development.

Maybe rather than entrypoint, the user could specify a shell property, with values such as bash, powershell, cmd, etc and how to invoke that shell would become an implementation detail, e.g. using git bash/cygwin on windows.

`name` is required

But I'm not sure what it's for. I just set mine to ".".

Can it's purpose be documented and/or it made optional?

Add Help Command

Story
User should be able to view all possible commands

Summary
by calling dotnet execute help should list all available commands

Should traverse up directories looking for `dotnetexec` file

I was hoping we'd be able to exec from any folder in the repo, but I only appear to be able to exec from the root of the repo, in the folder where the dotnetexec file lives.

It would be great if it traversed up the directory tree looking for the file, like e.g. the dotnet-tools.json itself.

Windows Support?

I see the following entry:

  "entrypoint": "/bin/bash",

Will this work in Windows? Powershell? Cmd.exe?

Cannot execute command

When trying to run dotnet execute test with the following config:

{
  "name": "app",
  "env": {},
  "commands": {
    "build": [
      "dotnet build"
    ],
    "test": [
      "dotnet test"
    ]
  }
}

I get this error:

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET Core program, but dotnet-execute does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

This is on Windows 10 (and I ran dotnet tool install --global dotnet-tool-exec) before this

Output loses colours

If I run our xunit tests sh script then I see a green results line in the output.

But running the same script via dotnet execute, all the text is white.

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.