René's URL Explorer Experiment


Title: Add TTY detection for non-interactive environments by tashian · Pull Request #210 · smallstep/cli-utils · GitHub

Open Graph Title: Add TTY detection for non-interactive environments by tashian · Pull Request #210 · smallstep/cli-utils

X Title: Add TTY detection for non-interactive environments by tashian · Pull Request #210 · smallstep/cli-utils

Description: Summary Adds TTY detection and contextual error messages for non-interactive environments (systemd services, GitHub Actions, Ansible, Docker containers). Changes New CanPrompt() function (ui/ui.go)...

Open Graph Description: Summary Adds TTY detection and contextual error messages for non-interactive environments (systemd services, GitHub Actions, Ansible, Docker containers). Changes New CanPrompt() function (ui/ui.go)...

X Description: Summary Adds TTY detection and contextual error messages for non-interactive environments (systemd services, GitHub Actions, Ansible, Docker containers). Changes New CanPrompt() function (ui/ui.go)...

Opengraph URL: https://github.com/smallstep/cli-utils/pull/210

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ea01fb45-dddc-b982-79a8-0382bc965905
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE478:377141:D6FEC0:10E44CA:697F0E9E
html-safe-nonce57badd10e07b70c3e4fd631c41d002913265a1b6fbd384b9b1b3184d397fc14d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDc4OjM3NzE0MTpENkZFQzA6MTBFNDRDQTo2OTdGMEU5RSIsInZpc2l0b3JfaWQiOiI4NjA1NTc1Njk2NDMwODYxOTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac759089e00badf8b4903d075e0bff586a94b7e5fbcf92762fa91c9bdf05301c9c
hovercard-subject-tagpull_request:3197619725
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/smallstep/cli-utils/210/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/98e63bd1d72503f77761ae93e49c42291a97722e8259324a97e3a7e617f3e415/smallstep/cli-utils/pull/210
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/98e63bd1d72503f77761ae93e49c42291a97722e8259324a97e3a7e617f3e415/smallstep/cli-utils/pull/210
og:image:altSummary Adds TTY detection and contextual error messages for non-interactive environments (systemd services, GitHub Actions, Ansible, Docker containers). Changes New CanPrompt() function (ui/ui.go)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametashian
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/smallstep/cli-utils git https://github.com/smallstep/cli-utils.git
octolytics-dimension-user_id23183426
octolytics-dimension-user_loginsmallstep
octolytics-dimension-repository_id308181148
octolytics-dimension-repository_nwosmallstep/cli-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id308181148
octolytics-dimension-repository_network_root_nwosmallstep/cli-utils
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsmallstep%2Fcli-utils%2Fpull%2F210
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsmallstep%2Fcli-utils%2Fpull%2F210
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=smallstep%2Fcli-utils
Reloadhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
Reloadhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
Reloadhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
smallstep https://patch-diff.githubusercontent.com/smallstep
cli-utilshttps://patch-diff.githubusercontent.com/smallstep/cli-utils
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsmallstep%2Fcli-utils
Fork 7 https://patch-diff.githubusercontent.com/login?return_to=%2Fsmallstep%2Fcli-utils
Star 13 https://patch-diff.githubusercontent.com/login?return_to=%2Fsmallstep%2Fcli-utils
Code https://patch-diff.githubusercontent.com/smallstep/cli-utils
Issues 0 https://patch-diff.githubusercontent.com/smallstep/cli-utils/issues
Pull requests 1 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pulls
Actions https://patch-diff.githubusercontent.com/smallstep/cli-utils/actions
Projects 0 https://patch-diff.githubusercontent.com/smallstep/cli-utils/projects
Security 0 https://patch-diff.githubusercontent.com/smallstep/cli-utils/security
Insights https://patch-diff.githubusercontent.com/smallstep/cli-utils/pulse
Code https://patch-diff.githubusercontent.com/smallstep/cli-utils
Issues https://patch-diff.githubusercontent.com/smallstep/cli-utils/issues
Pull requests https://patch-diff.githubusercontent.com/smallstep/cli-utils/pulls
Actions https://patch-diff.githubusercontent.com/smallstep/cli-utils/actions
Projects https://patch-diff.githubusercontent.com/smallstep/cli-utils/projects
Security https://patch-diff.githubusercontent.com/smallstep/cli-utils/security
Insights https://patch-diff.githubusercontent.com/smallstep/cli-utils/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fsmallstep%2Fcli-utils%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fsmallstep%2Fcli-utils%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#issue-comment-box
tashianhttps://patch-diff.githubusercontent.com/tashian
mainhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/tree/main
carl/tty-detection-674https://patch-diff.githubusercontent.com/smallstep/cli-utils/tree/carl/tty-detection-674
Add TTY detection for non-interactive environments https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#top
tashianhttps://patch-diff.githubusercontent.com/tashian
mainhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/tree/main
carl/tty-detection-674https://patch-diff.githubusercontent.com/smallstep/cli-utils/tree/carl/tty-detection-674
Conversation 1 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
Commits 7 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits
Checks 10 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/checks
Files changed https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/files
Please reload this pagehttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/tashian
tashianhttps://patch-diff.githubusercontent.com/tashian
Jan 22, 2026https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#issue-3840927910
Please reload this pagehttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
smallstep/cli#1553https://github.com/smallstep/cli/pull/1553
smallstep/cli#674https://github.com/smallstep/cli/issues/674
Claude Codehttps://claude.ai/code
Please reload this pagehttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
https://patch-diff.githubusercontent.com/tashian
https://patch-diff.githubusercontent.com/claude
Add TTY detection for non-interactive environmentshttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/23bf1e13d12f265825671ac3ec864c2296946c36
23bf1e1https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/23bf1e13d12f265825671ac3ec864c2296946c36
smallstep/cli#674https://github.com/smallstep/cli/issues/674
https://patch-diff.githubusercontent.com/apps/github-actions
github-actionshttps://patch-diff.githubusercontent.com/apps/github-actions
needs triage https://patch-diff.githubusercontent.com/smallstep/cli-utils/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
Jan 22, 2026https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#event-22204618501
tashianhttps://patch-diff.githubusercontent.com/tashian
Jan 22, 2026 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#ref-commit-2418bad
https://patch-diff.githubusercontent.com/tashian
https://patch-diff.githubusercontent.com/claude
Add --non-interactive flag and improve TTY detectionhttps://patch-diff.githubusercontent.com/smallstep/cli/commit/2418bad10c0b142a54a82ed4720fcc9b0de6d57c
2418badhttps://patch-diff.githubusercontent.com/smallstep/cli/commit/2418bad10c0b142a54a82ed4720fcc9b0de6d57c
smallstep/cli-utils#210https://github.com/smallstep/cli-utils/pull/210
#674https://github.com/smallstep/cli/issues/674
https://patch-diff.githubusercontent.com/tashian
tashianhttps://patch-diff.githubusercontent.com/tashian
Jan 22, 2026 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#ref-pullrequest-3840966958
Add --non-interactive flag and improve TTY detection smallstep/cli#1553 https://patch-diff.githubusercontent.com/smallstep/cli/pull/1553
https://patch-diff.githubusercontent.com/hslatman
hslatmanhttps://patch-diff.githubusercontent.com/hslatman
Jan 26, 2026 https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#pullrequestreview-3705670073
View reviewed changes https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/files/23bf1e13d12f265825671ac3ec864c2296946c36
ui/ui.gohttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/files/23bf1e13d12f265825671ac3ec864c2296946c36#diff-85b955154c0fd9a0bf7077ba557502ee99699bf50163cf2ac82a1a4821625caa
Please reload this pagehttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
tashianhttps://patch-diff.githubusercontent.com/tashian
January 27, 2026 14:32https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210#commits-pushed-ba25046
https://patch-diff.githubusercontent.com/tashian
https://patch-diff.githubusercontent.com/claude
Use go-isatty for terminal detection and improve error messageshttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/ba25046880afa228467f5cbcf2f6060793caf33d
ba25046https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/ba25046880afa228467f5cbcf2f6060793caf33d
https://patch-diff.githubusercontent.com/tashian
Shorten error msghttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/51abd6447493583ea7bc9f71ae3f0ff929a7c1e1
51abd64https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/51abd6447493583ea7bc9f71ae3f0ff929a7c1e1
https://patch-diff.githubusercontent.com/tashian
https://patch-diff.githubusercontent.com/claude
Respect STEP_NON_INTERACTIVE env var and fail early for promptshttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/5e8ce193638877cd8ddd00e5433bdc06924465d6
5e8ce19https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/5e8ce193638877cd8ddd00e5433bdc06924465d6
https://patch-diff.githubusercontent.com/tashian
Remove erorr paramhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/2879623e488e24392e11453bb3b6e11c9c9d10c3
2879623https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/2879623e488e24392e11453bb3b6e11c9c9d10c3
https://patch-diff.githubusercontent.com/tashian
Allow for more specific errorshttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/38b1665f2fc8580de38742efb691dcc72186cbfa
38b1665https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/38b1665f2fc8580de38742efb691dcc72186cbfa
https://patch-diff.githubusercontent.com/tashian
Remove unused errorhttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/ee51d1ad86e04cc1ead5c6e248e10850367af3fb
ee51d1ahttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/commits/ee51d1ad86e04cc1ead5c6e248e10850367af3fb
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsmallstep%2Fcli-utils%2Fpull%2F210
https://patch-diff.githubusercontent.com/hslatman
hslatman https://patch-diff.githubusercontent.com/hslatman
https://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210/files/23bf1e13d12f265825671ac3ec864c2296946c36
needs triage https://patch-diff.githubusercontent.com/smallstep/cli-utils/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
Step CLI should not try to open a TTY if one is not available https://github.com/smallstep/cli/issues/674
Please reload this pagehttps://patch-diff.githubusercontent.com/smallstep/cli-utils/pull/210
https://patch-diff.githubusercontent.com/tashian
https://patch-diff.githubusercontent.com/hslatman
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.