Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ari Porad
    @ariporad
    Sorry, I misread you other post

    @cheskos: I would guess that your project is misconfigured some how, or it's a problem with Cordova. Sorry.

    It looks like, one way or another, Cordova is calling shell.cp with the wrong number (or type) of arguments, and as such, it's failing. Maybe open an issue there.

    Sorry not to be more of a help.

    Francisco Javier Salinas Del Riego
    @cheskos
    that's helpful enough, I appreciate your help
    Ari Porad
    @ariporad
    Happy to. Good Luck.
    Let me know what it turns out to be.
    Francisco Javier Salinas Del Riego
    @cheskos
    I will if I get to the bottom of it
    ice
    @ycr6708536
    It can't rm a Invalid link folder
    I use child_process remove it
    Jeremy Rajan
    @jeremyrajan
    Hi! If someone could guide me in the right direction regarding this please? shelljs/shelljs#480 :)
    Basically, exec doesnt seem to work. I am using electronjs console.
    Ari Porad
    @ariporad
    @jeremyrajan: Just commented
    Reinaldo Antonio Camargo Rauch
    @reinaldorauch
    Hi'all , there is some destination where the project wants to achieve? Like "100% of interface compatibility with the linux commands" or "implement the most used unix commands" or such?
    Nate Fischer
    @nfischer
    @reinaldorauch we aim to get very close compatibility with the commands we have implemented. We also want to implement the most useful commands for scripting purposes. I view shelljs as a cross-platform alternative for bash. We don't have a specific end goal, however. We'd love to hear any thoughts you may have on the project 😊 @ariporad's thoughts would also be good to hear
    Reinaldo Antonio Camargo Rauch
    @reinaldorauch
    I think the project should define one as it would help in pointing efforts torwards. Also, if the project do such thing, we could use more seamlessly with the native implementations as it would be closer to what the command does.
    Nate Fischer
    @nfischer
    Sounds like a good point. I think maybe it's time to layout a roadmap in the wiki page
    Reinaldo Antonio Camargo Rauch
    @reinaldorauch
    I would be nice
    Reinaldo Antonio Camargo Rauch
    @reinaldorauch
    it*
    Jorge C
    @JorgeCeja
    Got a quick question. I'm using exec to interface with bluetoothctl. The thing is that after the command is set, there has to be multiple commands to be inputed. My point is that after using exec to start bluetoothctl, shelljs doesn't allow any more commands afterwards because bluetoothctl's command interface is started. Will there be anyway to set commands to bluetoothctl after it started? thanks you.
    Nate Fischer
    @nfischer
    Hmmm that doesn't sound like it's what she'll.exec is for. We don't offer a way of starting an external command line and then sending commands as input. You could try a hack by piping input into the exec call, but I think you would be better off searching for a different approach
    Jorge C
    @JorgeCeja
    Awesome, thank you! I'll look into piping and do more testing.
    Nate Fischer
    @nfischer
    Look into the async exec in the child_process module
    Samuel Suther
    @xstable
    How do I set sed in shelljs case-in-sensitive?
    Adam Murray
    @AdamMurray
    Hey guys. I'm currently having a massive issue with shelljs.exec() on Windows.
    I don't seem to be able to kill the process once I've started it.
    childProcess.kill() works fine on macOS. I've tried kill('SIGINT') and kill('SIGKILL') on Windows, but nothing seems to work.
    I saw a stackoverflow post where someone suggested using child_process().spawn instead of exec, but I don't know how that will effect the fact that I need a process to run async
    Any idas/
    *ideas?
    Nate Fischer
    @nfischer
    Hi all. Sorry, I haven't been checking the gitter lately
    @xstable I believe you can do a case-insensitive search like this: shell.sed(/mysearch/i, 'The Replacement String')
    Nate Fischer
    @nfischer
    @AdamMurray I can't speak much to the Windows stuff. Here's what I know:
    • child_process.spawn(...) is async, just like child_process.exec(...) and shell.exec(..., {async: true})
    • I'm assuming you're not using shell.exec() (synchronous), otherwise I have no clue how you would be trying to kill the process. I'll assume you're using it asynchronously
    • shell.exec(..., {async: true}) returns the same thing that child_process.exec(...) would return (see this line and this line)
    • Here's the docs for .kill(). It looks like you'll need to specify whatever the Windows kill signal is. I'm not much of a Windows guy, so I can't tell you what that would be or if this is even supported by the Node core team on Windows.
    Rodo Abad
    @rodoabad
    Hey guys!
    Anyone here use sinon to mock and stub shelljs in their tests?
    ç§»ćŠšćŒ€ć‘ć°ć†‰
    @nonstriater
    Hello, everyone
    Tu Huynh
    @TuHuynhVan
    Hi all, I faced an issue with shelljs, is this the place I can raise my concern?
    Code Panda
    @GetCodePanda
    @mtscout6 Hi all, I am new for cli development, I want to create a cli like Yeoman. i try shelljs for terminal support and i dont know how to run external application comment like 'ng new test' inside of that .how to do .. Thanks in Advance
    Dallin parker
    @dallin-r-parker
    hi all, I'm new to shelljs but i'm really excited about it. how do you accept input?
    IvanNaumenko
    @IvanNaumenko
    Hey guys! Need help
    ./reports/json/file_input.json | ./node_modules/bin/cucumber-junit > file_output.xml
    I need to write this string in shellJS
    but it doesn't see the path
    in Bush it works fine
    UrSisterAmister69
    @UrSisterAmister69
    Hoi
    Nate Fischer
    @nfischer
    Hi all! I'm not on gitter as much as I used to be :frowning: Please raise bugs/questions by filing a github issue.
    henry-chris
    @henry-chris

    Hey guys, trying to execute a shell.js script through NPM on Windows in VSCode. Getting this error:

    Running tslint command: find . -name 'tslint.appsec.json' -exec tslint --config {} --force -t stylish -o tslint.appsec.txt --project tsconfig.json 'client/*/.ts' ;
    FIND: Parameter format not correct

    Looking online i've several possible problems, the most likely is that it's using Windows find.exe or I have some quotes configured incorrectly. Any thoughts? I can get the command to work from cygwin in the same folder, and I've tried modifying my npm config to use:

    script-shell = "C:\Program Files\git\bin\bash.exe" which exists. If I change

    Oops, if I change my script-shell setting, it fails to find bash.exe . So I'm not sure if it's my command structure or not.
    Nate Fischer
    @nfischer
    @henry-chris windows has its own find command, which differs quite a bit from the POSIX find.
    kingkemsty
    @Kemsty2
    Hello Everyone
    Iwan Aucamp
    @aucampia

    @chase-moskal hi - regarding your proposal - https://github.com/shelljs/shelljs/issues/2#issuecomment-437635325 - would the behaviour be:

    If last param is passed, do callback, otherwise return promise?

    Iwan Aucamp
    @aucampia
    I have looked at the code a bit, to implement the same stuff async most of it will have to be rewritten, it will essentially be two code bases
    I guess technically the sync one can be written on async one
    but it does not make a whole lot of sense to keep the same base
    Dzevad Alibegovic
    @cuteghost
    Hi everyone, I have the script for setting up local env. I get the error mkcert: command not found when I do shelljs.exec('mkcert -install'). I am using ubuntu 20.04 LTS, I have installed mkcert using brew and if I run mkcert -install in terminal it works perfectly fine but when I try with shelljs.exec it fails. Any ideas?
    Dzevad Alibegovic
    @cuteghost
    @everyone