You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It actually does, I filter items like todo list Shopping | grep Cheese. I guess using --no-status also makes it easier to process further.
That's pretty cool! I think it would still be somewhat difficult to script without the unique ID of the to-do item as the Render() method uses Console.Write or Console.WriteLine APIs.
This issue is about making the TodoItem object itself available as a pipeline object in the output stream, however, I'm not sure if there's an equivalent of that for non-PowerShell environments. Alternatively we could add some query parameters to format the output of the list command, so desired properties can be listed, with a view to enhance this onto an output-formatting facility where we could enable csv/tsv outputs. 🥘 4️⃣ 💭
I can definitely see something like --out [csv|json|powershell]. Just have no idea how to format the output for powershell to accept it as objects. Everything else seems simple enough.
I haven't done any research but I'm guessing we could cast a TodoItem to a PSObject (or implement that interface in a wrapper object, turn it into a byte array and put it in the output stream). PowerShell tends to get along with .NET objects quite well.
This would allow scripting support, e.g.
The text was updated successfully, but these errors were encountered: