Comments (5)
@yevhen so I'm rewriting the FS/Run class right now for the .NET apis and I'm settling on similar syntax to node's child_process.
Something like this
using static Nake.Run;
using static Nake.Log;
Exec("echo hello", (error, stdout, stderr) =>
{
if (error != null) throw error;
Log.Out(stdout);
});
var echo = Spawn("echo", ["hello"]);
echo.Stdout += (data) => Lot.Out(data);
echo.Stderr += (data) => Log.Out(data);
echo.OnExit += (code) => Log.Out($"Exited with {code}");
What do you think? I can't really use the MSBuild libraries for core :( I don't really think they're worth keeping around.
from nake.
And to be honest Process.Start
could be used for Spawn
instead.
I do find some value in Exec
but not much, mostly just syntax improvement.
Maybe a ExecSync
& ExecAsync
?
from nake.
@Nate-Wilkins, sorry for amateur question, if I am wrong, please ignore.
Is FS refers to File System?
If so, can you utilize @xoofx zio?
from nake.
Ye, MSBuild was chosen as a quick solution to get up and running but we need to find good substitute for it.
@dadhi Zio looks promising
from nake.
Fixed by #23 😄
from nake.
Related Issues (20)
- Spaces in directory confuses params passed to MSBuild HOT 3
- Stepping back from this project - help wanted HOT 1
- Nested tasks cli invocation syntax
- Typo in README.md HOT 1
- Fix wiki documentation for Shell HOT 5
- Wiki documentation for environment variable interpolation
- Document VSCode intellisense and debugging
- Multi-level caching
- Sample script scaffolding
- Include some batteries
- Align default imports and namespaces with dotnet-script
- Print task argument documentation to console
- Patch assemblies with build version
- Caching doesn't work properly for multi-file scripts
- Automatic quotation of interpolations
- Empty Nake.csx fails to run with 3.0.0-beta-02 due to NuGet resolution errors HOT 4
- Any updates ? HOT 11
- [Discussion] Cmd() vs Run() vs await $"" HOT 1
- Update to .NET 7 HOT 2
- Get rid of nuget warnings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nake.