Skip to content

Feature: "(T)his always" for "Allow execution" #583

@ekr1

Description

@ekr1

Often I get the same command execution query again and again in a given session. For example:

cd /mycode && ./test.sh 2>&1
Allow execution of this command? (Y)es/(N)o/(A)ll/(S)kip all/(D)on't ask again [Yes]: 

I do not wish to use YOLO mode a.k.a. "(A)ll" as this would execute any other further commands as well.

A new option like "(T)his always" (maybe you find a shorter way to express it) would be great. If I were to chose this, cecli should remember this exact command line exactly, for this session, and repeat it later without prompting me. It would be good to have an array of such command lines of course so we can gather a few for the session. And finally it would be cool if it were included in /save and /load as well.

N.B., there is also the recently implemented feature to generally configure some commands as allowed, globally, but this feature suggestion here is more for commands that are a little bit specific to a given repository/session.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions