Questions tagged [command-line-interface]
The interface to a program that consists entirely of text, as opposed to (although not necessarily mutually exclusive to) a GUI, or Graphical User Interface.
command-line-interface
9,638 questions
3
votes
2
answers
95
views
CLI Arguments ignore
How force the program to enter in the first if.
To run it without CLI arguments:
...
1
vote
3
answers
139
views
Invoking tar.exe from PowerShell, can't input any more commands
I'm new to CLI and trying to use it instead of GUI options to get better at it.
Trying to extract a .gz archived pdf, but after running a command to see what happens it seems I can't input anything ...
1
vote
0
answers
191
views
Is it possible to create a new C# console app using C# code instead of CLI or Visual Studio UI
I need to automatically create new C# projects. I understand I can execute arbitrary dotnet CLI commands (e.g. ...
0
votes
1
answer
123
views
Why does the interactive Python interpreter in PyPy have a slightly different command-line interface?
I have identified that the interactive Python of PyPy is slightly different from the default Python interpreter specification, with PyPy lines starting with ">>>> " or ".... ...
1
vote
1
answer
53
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
22
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 ...
Best practices
0
votes
5
replies
113
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
105
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 ...
Tooling
0
votes
0
replies
40
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
130
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 ...
1
vote
1
answer
82
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
107
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
59
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 ...
0
votes
1
answer
95
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
139
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:
...
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
61
views
OpenStack Swift CLI prefix-based tempurl not working
running
swift tempurl --prefix-based GET 600 "/v1/AUTH_project/container/my/prefix/" "mykey12345"
returns
...
0
votes
2
answers
115
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:
...
3
votes
2
answers
157
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:
...
-2
votes
1
answer
81
views
Bash script on Ubuntu WSL with odd concatenation behavior using fzf and a word list [duplicate]
This script behaves perfectly fine on a real Ubuntu system.
...
0
votes
0
answers
94
views
gcloud CLI + flags-file: problems with repeated flags
I am using the gcloud CLI to create a new Workstation configuration.
To simplify configuration management I am also using a yaml configuration file to specify flag values based on Google's ...
4
votes
1
answer
266
views
Why can't I create a lightweight Git tag?
I cannot create a lightweight tag in Git, only annotated (as I understand).
I use the command:
git tag v15.0
This should create a lightweight tag without any ...
0
votes
0
answers
52
views
My textfsm template is not parsing the MPLS Interface for a SR 7x50 correctly
I'm hoping somebody can help me figure out the error in my textfsm template.
I need to parse the cli output of the MPLS interface table from a 7x50 SR router and capture all the information, including ...
0
votes
1
answer
56
views
How should a Function App (Container) authenticate to GitHub via the GH CLI?
I've setup a custom container in Azure that will run a Function App, with the intention of connecting to my organisations GitHub (GHE) instance and using GH CLI pull a list of repos.
I have a PAT ...
0
votes
0
answers
51
views
Add autocomplete for tcsh shell in python script using click
I want to add autocomplete for tcsh on naval example of click: https://github.com/pallets/click/tree/main/examples/naval
I started to add this:
...
0
votes
0
answers
45
views
Is there any way to order the output of MediaInfo CLI on Windows?
I want to recursively parse my movie files and create output displaying each one's video codec and file name like this:
...
0
votes
2
answers
259
views
Human in the loop to work in both Langgraph studio and CLI based
I have a LangGraph agent from a Python shell script, and I expose it as a Typer command to be executed from the command line. Everything works fine. But now I want to add a human in the loop as one ...
-1
votes
1
answer
298
views
The value of the GITHUB_TOKEN environment variable is being used for authentication [closed]
Following the steps in https://learn.microsoft.com/en-us/training/modules/github-copilot-across-environments/4-git-hub-copilot-for-the-command-line
After installing ...
1
vote
1
answer
579
views
unknown command "copilot" for "gh"
Following the steps in https://learn.microsoft.com/en-us/training/modules/github-copilot-across-environments/4-git-hub-copilot-for-the-command-line
I run ...
0
votes
0
answers
60
views
Is it possible to host a REPL child process in rustyline?
I'm currently working on a rustyline program. My goal is to host another REPL program as a child process, and do something like auto complete its commands. However, ...
0
votes
0
answers
59
views
oclif command shows "not found" when using "--help"
I'm creating a CLI using oclif, and I have a config command defined like this:
...
-1
votes
1
answer
150
views
How to control Stockfish CLI through Python? [closed]
I have a CLI binary that I would like to control through Python. How could this easily be done?
I have tried making a terminal in a subprocess and opening it that way but that didn't work. I also ...
0
votes
1
answer
72
views
In config file AWS AssumeRole will reuse current session even if the user changes
I was recently using the aws cli to test negative scenarios when doing AssumeRole in deploying resources. The negative tests were unexpectedly succeeding.
I have the following $HOME/.aws/credentials ...
1
vote
2
answers
69
views
in package cli , run function tree return nothing
I want to show the data structure using cli::tree , but failed ( below code return nothing).
Anyone can help ? Thanks!
...
14
votes
7
answers
4k
views
Visual Studio Angular + ASP.NET Core project fails with "Could not find file app.component.ts"
I'm trying to create a new ASP.NET Core project with Angular using Visual Studio 2022. I selected the Angular template during project creation. However, after the project is generated, I get the ...
0
votes
0
answers
35
views
PSORTb Missing output file(s) error in Nextflow process
I'm a beginner here. I've built a few nextflow workflows for other tools before. The command for PSORTb requires you to specify the directory where the output in stored and this is where I feel the ...
-6
votes
1
answer
89
views
Can one use DPO (direct preference optimization) of GPT via CLI or Python on Azure?
Can one use DPO of GPT via CLI or Python on Azure?
https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/fine-tuning-direct-preference-optimization just shows how to do DPO of GPT via CLI ...
1
vote
4
answers
295
views
For Progress OpenEdge is there a way to programmatically output the data dictionary detailed table report?
I've developed a lookup utility website to take the detailed table reports that the Data Dictionary produces, to parse that output into useable JSON data with PHP, and then to re-display it in a nice ...
2
votes
1
answer
286
views
dotnet format respects some rules but not IDE0041
I am trying to use dotnet format cli command to enforce some rules on our code bases. I would like to remove unused using statements and also enforce the use of "is null" instead of "== ...
1
vote
1
answer
96
views
How do I type a TAB character in jshell?
In jshell, typing the TAB key on my keyboard serves as both auto-completion, as well as lets you see a short view of the documentation.
How do I type a literal TAB ...
1
vote
0
answers
59
views
Understanding the Need for 'ENTER' Key in PHP CLI's Real-Time Key Press Detection on Windows [duplicate]
I am trying to capture real-time key presses in Windows CLI using PHP, but Windows buffers input, forcing me to press Enter before any key detection occurs. In Linux/macOS, I can use ...
0
votes
1
answer
112
views
Creating menus with options that select other menus, without causing stack overflow due to recursion
I want to create menus with options that select other menus, without causing a stack overflow error due to recursion.
But the menus have to be initialized, and a menu ...
2
votes
2
answers
86
views
Is it possible to force a spawned process's controlling tty into the same state as it would be under interact?
Consider the following expect script, which attempts to automate an approval flow that is managed by a program X that we lack ...
0
votes
1
answer
112
views
How to manage commands availablity dynamically in a Spring Shell application?
I'm building a command-line interface application using Spring Shell.
It has :
5 commands named "a", "b", "c", "d", "e". Each command is defined in ...
0
votes
0
answers
56
views
Gradle stdout cursor control
I am working on a Gradle plugin, where I download some files from remote API in parallel. I want to inform user about the progress of each file. Let's say there are 10 files that are being downloaded, ...
0
votes
1
answer
158
views
Docker pull from JFrog Artifactory into VM with Azure DevOps
In my pipeline I need to pull an image into a VM.
I'm using the following code, but it returns an error.
...
0
votes
1
answer
50
views
PhantomJS frozen stuck at blank terminal after trying use $.ajax
I have been porting my code to PhantomJs and have been having a hard time with using $.ajax in Jquery. My code runs perfectly when the function call is dropped. I am new-ish to JavaScript other than ...
2
votes
1
answer
77
views
Using IConfigurationRoot to retrieve user secrets in f# [closed]
A bare bone implementation for retrieving user secrets using F#
I am new to f# (coming from c#) and I was looking to retrieve user secrets for a bare bone CLI project. I did not want to import ...
0
votes
1
answer
72
views
How do I copy a specific file to have it replace all files of only a specific file type in all subfolders of a directory that match a wildcard in PATH [closed]
So, I'm currently working on a mod for a game, and I might end up having to do this for other mods in the future, so I'd like to know if there is a way to do it with the FOR/DO command in Windows' ...
0
votes
0
answers
39
views
Koin only injects one feature into Map<Int, Feature> in Kotlin CLI app
I'm building a Kotlin CLI application using Koin. I have multiple Feature classes (each representing a functionality), and I register them as follows:
...