Git Product home page Git Product logo

Comments (8)

apottere avatar apottere commented on May 28, 2024 1

There's a fun bash workaround for this till it's implemented:

eval "$(script -q /dev/null alks sessions open -o env 2>&1 | tee >(grep "^export " | tr -d "\r") >&2)"

This runs the command with script so it displays the list, forces everything to stdout, copies everything to stderr, and filters stdout to only show the exports.

from alks-cli.

brianantonelli avatar brianantonelli commented on May 28, 2024

Solved! SBoudrias/Inquirer.js#519 (comment)

from alks-cli.

apottere avatar apottere commented on May 28, 2024

Nice!

from alks-cli.

brianantonelli avatar brianantonelli commented on May 28, 2024

FWIW that solution didn't exist when I opened it! 🤣

from alks-cli.

brianantonelli avatar brianantonelli commented on May 28, 2024

Still no luck, its running fine with stderr but the library is still outputting some control characters to stdout..

^[[?25l^[[?25hexport AWS_ACCESS_KEY_ID=aaa && export AWS_SECRET_ACCESS_KEY=bbb && export AWS_SESSION_TOKEN=ccc
^[[?25h

from alks-cli.

apottere avatar apottere commented on May 28, 2024

@brianantonelli does that mean this is fixed?

from alks-cli.

brianantonelli avatar brianantonelli commented on May 28, 2024

Sadly no. Unless we switch to another input framework it most likely wont.

from alks-cli.

apottere avatar apottere commented on May 28, 2024

image

from alks-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.