9,649 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
29
views
Adding new Flag to urfave CLI Tool Breaks Existing Flag
I am building a CLI tool for docker compose to selectively exclude some containers from running/stopping operations (from a docker-compose.yaml having many containers, user can specify the containers ...
Advice
0
votes
0
replies
17
views
Headless command to install all recommended extensions in one go
steps to reproduce:
create extensions.json
in VSCode, go to Extensions pane and @recommended
Click the first cloud icon in the Workspace recommendations header 'Install Workspace Recommended ...
Best practices
0
votes
5
replies
105
views
Best practices for architecting a Go CLI with ~100 commands and many flags, how to organize commands/flags?
I'm designing a CLI tool in Go that will expose roughly 100 commands. Each command has its own set of flags, and there are also several global flags. My main goals are maintainability, testability, ...
3
votes
1
answer
95
views
How to unpack archives with Node.js and the 7-Zip CLI (using the "spawn()" method)?
I need to complete the following task (with only two tools: Node.js and the 7-Zip CLI):
Read a directory recursively;
For each file whose extension is .zip, unpack it with the 7-Zip CLI in the ...
Tooling
0
votes
0
replies
39
views
Window Swallower for MS Windows (10, 11) like "devour" lib on X11
I would like to create a C++ CLI and GUI app that should work on MS Windows.
I need the GUI be launched from CLI and if possible it would be great to have the app folded back to CLI.
As an option, I ...
0
votes
1
answer
123
views
-Command "dir" with color
In PowerShell, if I do:
dir
I get a listing with color.
However, if I do:
PowerShell -Command "dir"
there is no color.
Is there a way to do PowerShell -Command "dir" and have it ...
1
vote
1
answer
75
views
Issue with Template.Json not excluding files
I have built a template project with a Template.json and this will generate the template fine ( no errors at all )
ive also managed to add some choices to the symbols that will add or hide code ...
5
votes
1
answer
103
views
How get Powershell v7.5 to expand $env from command line like v5.1
Passing an environment variable from command line works differently in Powershell v7.5 compared to v5.1. Is there some overall setting for PS 7.5 to provide compatibility? Or an explanation of why ...
2
votes
1
answer
55
views
PhpUnit overwrite server variables from XML
I have following server variable in phpunit.xml:
<php>
<server name="APP_DEBUG" value="false"/>
</php>
Sometimes while developing, I want have APP_DEBUG ...
0
votes
1
answer
94
views
Why can't I see the text?
I've been trying to develop my own simple little CLI Typing Game with Curses. The menu works, but when I try to press play on it, the words aren't appearing. I could see them before but they're just ...
1
vote
1
answer
138
views
php's readline() method adding weird line breaks when executed via shell?
So I have this really weird issue where I have the following dummy.php script:
<?php
declare(strict_types=1);
$prompt = "Hello there!".
PHP_EOL . "What do you want to know?"...
1
vote
0
answers
112
views
How to show outputs from the cli package in Shiny?
I have a time-consuming function with a few embedded cli messages to keep the user updated. I’m planning to include this function in a Shiny app so that the user can simply click a button and see the ...
0
votes
1
answer
58
views
OpenStack Swift CLI prefix-based tempurl not working
running
swift tempurl --prefix-based GET 600 "/v1/AUTH_project/container/my/prefix/" "mykey12345"
returns
/v1/AUTH_project/container/my/prefix/?temp_url_sig=abc0987&...
0
votes
2
answers
113
views
Extract Linux interface name in PowerShell
I want to put the name of an existing interface in Linux into a variable so that I can use it using the variable.
this is my source:
Write-Output "⚙ Detecting Linux network interface..."
$...
3
votes
2
answers
156
views
How to create a CL utility with an option set?
Background:
In build.rakumod I have several multi sub MAIN( ... ), one of which is:
multi sub MAIN(
:$config = 'config', #= localised config file
Bool :install($)!, #= install a config ...