keybase / keybase/keybase-issues

[CLI] make output to file default for 'keybase prove' flow for large blocks of text

Open
#1,310 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
899
Forks
40
PR merge metrics
No merged PRs in 30d

Description

The CLI prove flow outputs a large chunk of data to STDOUT that you are supposed to copy and paste to the service you're trying to prove. (67 lines for a website, 94 lines for github). Unless you have copy and paste working right in your terminal (and let's hope you're not using screen or something like that) it's awkward to get that output in to a form you can upload to github.

Once you realize this problem and run 'keybase prove --help' you discover the -o flag to send the output to a file.

Suggestion: make output to a file the default for large blocks of text (more than 15 lines). Prompt for a filename, allow - for STDOUT. Modify the flags so this is straightforward.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the CLI entry point for `keybase prove` and the existing `--help` and `-o` flag handling. Trace how large proof output is currently sent to STDOUT, then define the filename prompt and `-` override behavior; done means large outputs default to a file while explicit STDOUT remains available.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.