From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Mauer Subject: Re: Powershell scripting with org-babel Date: Mon, 10 Feb 2020 21:32:48 -0600 Message-ID: References: <1247841977.1214337.1581352684665@ichabod.co-bxl> Reply-To: gmauer@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000027b1bf059e44835a" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45152) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1MII-00008p-QA for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 22:33:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1MIG-0003PD-E9 for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 22:33:02 -0500 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:35528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1MIG-0003Kj-6R for emacs-orgmode@gnu.org; Mon, 10 Feb 2020 22:33:00 -0500 Received: by mail-ot1-x329.google.com with SMTP id r16so8763771otd.2 for ; Mon, 10 Feb 2020 19:32:59 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: MS Window , emacs-orgmode --00000000000027b1bf059e44835a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Micro$loth WindBlows is a computer virus Well that's mature and appropriate. I recently did an implementation of `ob-pwsh` for supporting powershell core (it assumes there=E2=80=99s a pwsh command available on PATH though th= ats configurable with `org-babel-command:pws`). Here=E2=80=99s the link https://github.com/togakangaroo/ob-pwsh. Instructions for installing are in the README It works ok and even supports variables but was a 3 hour hack job, plenty of features missing. I hadn=E2=80=99t even announced it on this list before= . The code is pretty small though - under 60 loc if you want to contribute to it, I=E2=80=99m game. I also saw this a while ago but haven=E2=80=99t really dug in https://old.reddit.com/r/emacs/comments/dkz0n1/babel_with_powershell/?st=3D= k5jqc8es&sh=3Db464c181 Oh, and powershell is awesome. It=E2=80=99s 2020, we *should* have a runtim= e in our terminal (eshell somewhat does this and is pretty good because of it). One of the things that would be really nice to do some day would be some sort of conversion between powershell and lisp structures so that we could pass structured data as hashes and lists between languages - not just strings. On Mon, Feb 10, 2020 at 7:59 PM briangpowell . wrote: > Micro$loth WindBlows is a computer virus > > But if you must use Windows, suggest you use Cygwin and BASH and/or EShel= l > {the Emacs Shell}--you can do much more than PowerSh3ll > > And Emacs & OrgMode work very nicely on Cygwin > > On Mon, Feb 10, 2020 at 11:58 AM MS Window > wrote: > >> Hello, >> >> can you help me ? I want to use org-babel for Powershell scripting. I >> found this code chunk on the internet for customizing org-babel for >> Powershell on github: >> >> https://gist.github.com/cbilson/ae0d90d163be4d769f8a15ddb58292bc >> >> There is no explanation there I should put the configuration. The >> org-babel documentation is too brief for me as beginner to understand. >> >> Yours sincerely >> >> Claus Keller >> >> >> >> --00000000000027b1bf059e44835a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=C2=A0Micro$loth WindBlows is a computer virus

Well that's mature and appropriate.
<= br>
I recently did an implementation of `ob-pwsh` for supporting = powershell core (it assumes there=E2=80=99s a pwsh command available on PAT= H though thats configurable with `org-babel-command:pws`). Here=E2=80= =99s the link=C2=A0http= s://github.com/togakangaroo/ob-pwsh. Instructions for installing are in= the README

It works ok and even supports variable= s but was a 3 hour hack job, plenty of features missing. I hadn=E2=80=99t e= ven announced it on this list before. The code is pretty small though - und= er 60 loc if you want to contribute to it, I=E2=80=99m game.

=
I also saw this a while ago but haven=E2=80=99t really dug in=C2= =A0https://old.reddit.com/r/emacs/co= mments/dkz0n1/babel_with_powershell/?st=3Dk5jqc8es&sh=3Db464c181

Oh, and powershell is awesome. It=E2=80=99s 2020, we= should have a runtime in our terminal (eshell somewhat does this an= d is pretty good because of it). One of the things that would be really nic= e to do some day would be some sort of conversion between powershell and li= sp structures so that we could pass structured data as hashes and lists bet= ween languages - not just strings.

On Mon, Feb 10, 2= 020 at 7:59 PM briangpowell . <briangpowellms@gmail.com> wrote:
Micro$loth WindBlows is a computer virus

But = if you must use Windows, suggest you use Cygwin and BASH and/or EShell {the= Emacs Shell}--you can do much more than PowerSh3ll

And Emacs & OrgMode work very nicely on Cygwin

On Mon, Feb 10, 2= 020 at 11:58 AM MS Window <ms.window@mailfence.com> wrote:
Hello,

can you help me ? I want to use org-babel for Powershell scripting. I found= this code chunk on the internet for customizing org-babel for Powershell o= n github:

https://gist.github.com/cbilson/ae0d= 90d163be4d769f8a15ddb58292bc

There is no explanation there I should put the configuration. The org-babel= documentation is too brief for me as beginner to understand.

Yours sincerely

Claus Keller



--00000000000027b1bf059e44835a--