9,655 questions
0
votes
0
answers
25
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 ...
0
votes
0
answers
48
views
Use fallback subcommand if no subcommand matches [duplicate]
I have a tool that uses Click to define its CLI interface. It uses groups to achieve a subcommand hierarchy. So, if it is mytool, we have commands like mytool edit, mytool show, mytool execute script1....
0
votes
1
answer
88
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
0
answers
104
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
2
answers
109
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..."
$...
-2
votes
1
answer
73
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.
#!/bin/bash
set -Eeu -o pipefail
word1=$(awk '{print $2}' eff_short_wordlist_2_0.txt | fzf)
echo "${word1}"
word2=$(awk '{print $...
4
votes
1
answer
224
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 metadata, but instead it asks me for a ...
0
votes
1
answer
47
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
27
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:
Codec - Video1.mkv
Codec - Video2.mp4
Codec - Video3.mkv
I found SomethingDark'...
-1
votes
1
answer
200
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 gh, I tried to run gh copilot ...
0
votes
0
answers
57
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, I encountered a problem. The ...
-1
votes
1
answer
98
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 ...
1
vote
2
answers
67
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!
library(cli)
mtest <- data.frame(
stringsAsFactors = FALSE,
category = c(&...
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 ...
1
vote
4
answers
216
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 ...
1
vote
1
answer
88
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 character in jshell?
Sometimes, when ...
0
votes
1
answer
106
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 a can point to a menu b and b to ...
0
votes
1
answer
90
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
1
answer
116
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.
- task: AzureCLI@2
displayName: Deploy image to test VM
...
1
vote
1
answer
65
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
0
answers
35
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:
// FeatureModule.kt
val FeatureModule = module {
...
1
vote
0
answers
324
views
AWS Bedrock Agent InvokeAgentCommand throws "Internal Server Exception"
I'm currently building a gen AI based CLI chatbot with an AWS Bedrock Agent in Node.js with the AWS SDK for JavaScript.
But for some reason both in my code and in the testing enviroment within the AWS ...
0
votes
0
answers
47
views
AMAZON.QnAIntent integration to existing lex bot through cli
aws lexv2-models create-intent \
--bot-id BH4IPQZY \
--bot-version DRAFT \
--locale-id en_US \
--intent-name messageBedrock \
--description "QnA intent for knowledge base integration&...
7
votes
1
answer
425
views
C++ argument parsing is incorrect when the executable file path contains spaces
I am having problems with arguments in C++ console programs built under C++Builder 12 Community Edition.
If the executable is in a folder with spaces in its name, eg. "test dir", and I ...
0
votes
0
answers
67
views
Python multiline prompt
I have been trying to change my prompt in sys.ps1 with PYTHONSTARTUP.
My idea was that I will show some information on first line (time, path) and the prompt on the second. When I tried changing ps1 ...