Giter VIP home page Giter VIP logo

Comments (14)

KrauseFx avatar KrauseFx commented on September 24, 2024

@ben-lings-tessella Yes, I'd love that. I'm not 100% sure how to approach it though. Do you know a reliable way to detect if fastlane is currently running on a system with no user inputs?

from credentials_manager.

 avatar commented on September 24, 2024

I don't know of a way to detect that. Would setting an environment variable be an option (e.g. FASTLANE_NO_PROMPTS=1)?

from credentials_manager.

jonah-williams avatar jonah-williams commented on September 24, 2024

In an Xcode Server environment ruby -e "STDOUT.isatty" will return false when run as part of a post integration script and true when run directly from an interactive terminal.

from credentials_manager.

lacostej avatar lacostej commented on September 24, 2024

I am not aware of a simple cross-platform cross CI server way to detect that a program is running inside a CI environment.

I would go for a generic environmemt variable, a la FASTLANE_NO_PROMPTS, implemented in the top foremost project (which seems to be credentials_manager).

from credentials_manager.

KrauseFx avatar KrauseFx commented on September 24, 2024

Detecting if it's a CI service it already part of fastlane using Helper.ci?, but there might be various reasons for not having a user input, right?

from credentials_manager.

kevinbaker-gpsw avatar kevinbaker-gpsw commented on September 24, 2024

What is the status on this?

Would it be possible with the below env variables?

FASTLANE_USER
FASTLANE_PASSWORD
FASTLANE_DONT_STORE_PASSWORD

from credentials_manager.

KrauseFx avatar KrauseFx commented on September 24, 2024

Yes, these are the exact environment variables you'll need @kevinbaker-gpsw 👍

from credentials_manager.

yakimant avatar yakimant commented on September 24, 2024

Hi! It would be nice to fail the lane if no password is provided by .env or environment variables.

from credentials_manager.

KrauseFx avatar KrauseFx commented on September 24, 2024

@yakimant on the other hand it should ask for username and password if nothing is provided 😉

Is there any way to reliably detect if the currently running process is not controlled by a user?

from credentials_manager.

orta avatar orta commented on September 24, 2024

There's some stuff here: http://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch

from credentials_manager.

KrauseFx avatar KrauseFx commented on September 24, 2024

@orta thanks, I just added https://github.com/fastlane/fastlane_core/blob/feature/messaging/lib/fastlane_core/ui/implementations/shell.rb#L74-L79, which should be in the next fastlane_core release. What do you think?

from credentials_manager.

orta avatar orta commented on September 24, 2024

Yep, I bet that's good enough 👍

from credentials_manager.

asfalcone avatar asfalcone commented on September 24, 2024

Going to close this issue as it was addressed in fastlane_core in December. 👍

from credentials_manager.

fastlanebot avatar fastlanebot commented on September 24, 2024

This issue was migrated to fastlane/fastlane#3325. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

from credentials_manager.

Related Issues (15)

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.