BK-PROMPT(1)

πŸ“¦ version 7.3.3, in alpine 3.24

🌸 NAME 🌸

okay bestie, this is bk prompt from the BitKeeper User’s Manual, manual name (none), page label bk prompt(none) πŸ’– β€” and it does exactly what it says on the tin: prompt a user with a message ✨

πŸŽ€ SYNOPSIS πŸŽ€

bk prompt [opts] [message]

πŸ’… DESCRIPTION πŸ’…

bk prompt is the little icon that prompts a user with a message, gets a positive or negative response, and then exits accordingly. fr fr, that’s the whole job 🫢

This interface may be used for either command line or graphical environments. no cap.

If the environment variable BK_GUI is set, then the graphical version will be used instead of the command line version. All of the BitKeeper GUI tools set this variable automatically such that any call to bk prompt from inside the graphical tools will result in a graphical prompt, including the execution of any user supplied triggers. the way that works is lowkey iconic πŸ’«

If the environment variable BK_MSG_GEOM is set, the graphical tool will use the value of this variable to locate itself on the screen. The format of the variable must be in the form +x+y where x and y are screen coordinates. bk citool sets this variable automatically such that the prompt will be at the same x/y location as the upper left corner of citool. placement? ate. πŸ“

✨ OPTIONS ✨

  • βˆ’c β€” Only for command line prompts, print the message and exit 0.
  • βˆ’e β€” Indicates that the prompt is an error message.
  • βˆ’ffile β€” Specifies the file contain the message to be displayed. Unless this option or the βˆ’p option is present, the last command line argument must be present and is used as the message.
  • βˆ’g β€” Override the BK_GUI variable and force a command line prompt if called in a graphical context.
  • βˆ’i β€” Indicates that the prompt is an informational message.
  • βˆ’nno β€” If set, specifies the message for the label in the graphical tool which is to be used if the user does not agree. Default is β€œNO”. Not used in command line context.
  • βˆ’o β€” OK only, clears the default β€œNO” value. Not used in command line context.
  • βˆ’pprog β€” If set, specifies a program which, when run, will produce the message contents.
  • βˆ’ttitle β€” If set, specifies the title of the graphical tool. Default is β€œBitKeeper Message”. Not used in command line context.
  • βˆ’yyes β€” If set, specifies the message for the label in the graphical tool, or the prompt in the command line tool, which is to be used if the user does agree. Default is β€œOK”.
  • βˆ’w β€” Indicates that the prompt is a warning message.

πŸ¦‹ EXIT STATUS πŸ¦‹

bk prompt returns exit status:

  1. 0 β€” if the user said yes πŸ’–
  2. 1 β€” if the user said no πŸ™ˆ
  3. 2 β€” if an error occurred πŸ’€

🌈 SEE ALSO 🌈

go check out bk‐citool and bk‐triggers ✨ iykyk.

πŸ‘‘ CATEGORY πŸ‘‘

File


kisses from BitKeeper Inc, footer source/version stamp 1E1, page bk prompt(none) πŸ’‹πŸŽ€ byeee bestie πŸ¦‹

πŸ“¦ where this page comes from
  • alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms