i need to eval an object from my linux commandline. I understand that clap-st is able to do this, but I can't seem to import it into pharo7, I suppose because of compatability reasons. Someone sent me this, but I can't seem to replicate the help screen. Is it because I'm on linux and he's on mac? prometheus:2018-12-20 sven$ ./pharo Pharo.image printVersion [version] 'Pharo7.0.0' 'Pharo-7.0.0+rc1.build.66.sha.0ff3a6c1c0f1d9b2876c50e19b790dd7bb926dd9 (64 Bit)' prometheus:2018-12-20 sven$ ./pharo Pharo.image --list Currently installed Command Line Handlers: loadHermes Loads the hermes files passed as parameter printVersion Print image version save Rename the image and changes file initializePackages Initialize packages and protocols from a given lists st Loads and executes .st source files config Install and inspect Metacello Configurations from the command line metacello Install and inspect Metacello Baselines/Configurations from the command line test A command line test runner Fuel Loads fuel files clean Run image cleanup get Install catalog projects from the command line (consult catalog at http://catalog.pharo.org) perform Perform given message on a specified class or global eval Directly evaluates passed in one line scripts |
On 24/03/19 5:23 AM, test email wrote:
> i need to eval an object from my linux commandline. I understand that > clap-st is able to do this, but I can't seem to import it into > pharo7, I suppose because of compatability reasons. > > Someone sent me this, but I can't seem to replicate the help screen. > Is it because I'm on linux and he's on mac? What exactly are you trying to evaluate? For simple expressions, I use: $ ./pharo Pharo.image eval 20 factorial 2432902008176640000 $ alias p='./pharo Pharo.image eval' $ p Morph allSuperclasses an OrderedCollection(Object ProtoObject) $ echo \'hello\' , \' world\' >hello.st $ p $(< hello.st) 'hello world' $ HTH .. Subbu |
In reply to this post by Steve Quezadas
On Sun, 24 Mar 2019 at 00:54, test email <[hidden email]> wrote:
> > i need to eval an object from my linux commandline. I understand that clap-st is able to do this, but I can't seem to import it into pharo7, I suppose because of compatability reasons. Clap is now part of the base image, so you should be able to just download the latest image and use it "out of the box". Cheers, Alistair |
is it part of the base image? It's not listed in spotter. I also checked the packages for something beginning with Clap and it's not there either. I am also running linux, so "eval" is not an option in my commandline. On Sun, Mar 24, 2019 at 12:06 PM Alistair Grant <[hidden email]> wrote: On Sun, 24 Mar 2019 at 00:54, test email <[hidden email]> wrote: |
Inline below ... Cheers, Alistair (on phone) On Mon., 25 Mar. 2019, 10:36 Steve Quezadas, <[hidden email]> wrote:
My apologies, I should have added "in Pharo 8".
I run Linux (Ubuntu 16.04), eval should work fine (but I'm not at my PC at the moment to produce an example).
|
Eval works fine on Linux - I use it for tons of build stuff to launch an image pass a build script with AWS parameters in a constructed dictionary for example.
Sent from my iPhone
|
In reply to this post by Steve Quezadas
On Mon, 25 Mar 2019 at 10:36, Steve Quezadas <[hidden email]> wrote:
> > is it part of the base image? It's not listed in spotter. I also checked the packages for something beginning with Clap and it's not there either. > > I am also running linux, so "eval" is not an option in my commandline. $ curl get.pharo.org/64/vmLatest80 | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5344 100 5344 0 0 35976 0 --:--:-- --:--:-- --:--:-- 36108 Downloading the latest pharoVM: http://files.pharo.org/get-files/80/pharo64-linux-latest.zip pharo-vm/pharo Creating starter scripts pharo and pharo-ui $ curl get.pharo.org/64/80 | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3244 100 3244 0 0 5358 0 --:--:-- --:--:-- --:--:-- 5353 Downloading the latest 80 Image: http://files.pharo.org/get-files/80/pharo64.zip Pharo.image $ ./pharo Pharo.image eval '4+3' 7 $ ./pharo Pharo.image clap hello --help Provides greetings Usage: hello [--help] [--whisper] [--shout] [--language] [<who>] Parameters: <who> Recipient of the greetings Options: --help Prints this documentation --whisper Greet discretely --shout Greet loudly --language Select language of greeting $ ./pharo Pharo.image clap hello --shout everyone HELLO, EVERYONE! $ uname -a Linux alistair-xps13 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux HTH, Alistair |
Free forum by Nabble | Edit this page |