armbian / configng

Next generation bash based configuration API
11 stars 10 forks source link

Propose small design change #53

Closed igorpecovnik closed 1 week ago

igorpecovnik commented 1 week ago

When we are running in CLI mode it would be desirable to have a switch to execute command without confirmation prompt.

Example: sudo bin/armbian-configng --cli S11

This switch to stable repository and we can skip the prompt in machine mode. One way it would be to move this from command to new field

"prompt": [ "This will open interface file to edit\nCTRL+S to save\nCTLR+X to exit\nwould you like to continue?"

which we don't execute in CLI mode or if additional switch is used.

Tearran commented 1 week ago

This switch to stable repository and we can skip the prompt in machine mode. One way it would be to move this from command to new field

good idea implemented prompt

example:

"prompt": "This will open /boot/armbianEnv.txt file to edit\nCTRL+S to save\nCTLR+X to exit\nwould you like to continue?",

When we are running in CLI mode it would be desirable to have a switch to execute command without confirmation prompt.

Example: sudo bin/armbian-configng --cli S11

The only issue I see here is --cli flag may be misleading, --cli is TUI or simple mode

--api is intended for "cli mode" or "advanced mode" passing command line arguments in a direct manner to avoid the nesting involved with the UI

igorpecovnik commented 1 week ago

flag may be misleading

Yes ofc. What about: --cmd or nothing? just -S11 ?