9,654 questions
1
vote
1
answer
56
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
92
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 ...
0
votes
0
answers
49
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....
2
votes
1
answer
53
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
92
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
133
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
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
1
answer
54
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
110
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
150
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 ...
-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 $...
0
votes
0
answers
83
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
237
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
0
answers
49
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
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
45
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:
_tcsh_source = """\
%(...
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'...
0
votes
2
answers
196
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
205
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 ...
1
vote
1
answer
519
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 brew install gh then run gh copilot explain &...
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 ...
0
votes
0
answers
52
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:
import { Args, Command, Flags } from "@oclif/core";
export default class Config extends Command {
static ...
-1
votes
1
answer
109
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
65
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
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(&...
14
votes
7
answers
3k
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
83
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
221
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
247
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
89
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 ...
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 stty -icanon to ...
0
votes
1
answer
109
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 ...
2
votes
2
answers
75
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 the source code for:
eval spawn $argv
set timeout -1
expect -ex {Approve ...
0
votes
1
answer
97
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
53
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
126
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
...
0
votes
1
answer
48
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 ...
1
vote
1
answer
67
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
69
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
36
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 {
...
0
votes
4
answers
79
views
How to remove/delete the only commit made on a new branch? [duplicate]
I made a new branch to tinker with code without messing up the main branch I was working on. It ended up bearing no fruit, so I went back to working on the parent branch without bringing any of the ...
1
vote
0
answers
333
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
108
views
Drupal & CiviCRM: site does not pass readiness checks for automatic updates
I am wondering what is causing these two Drupal status report errors and how to resolve them.
These two Drupal Status report errors:
Update readiness checks: Your site does not pass some readiness ...
0
votes
0
answers
56
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&...
0
votes
1
answer
37
views
How Can I Ensure Suggestions Appear in the CLI Despite Long Execution Times?
I am developing a command predictor in C# following this guide. I managed to get the predictions working, but I hit a blocking point. If the execution time of the GetSuggestion() function is too long, ...
7
votes
1
answer
429
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
1
answer
33
views
Testing a package
I have developed a python package the directory looks like this:
main folder/
django_app/
django_project/
my_package/
manage.py ....
So as i set my path to main_folder/my_package in ...
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 ...
0
votes
0
answers
24
views
Reading user input while long running child process is running - every other key is missing
I have a simple Node CLI app that runs a long-running process, in this case a Gradle in watch mode.
I need to have some user control so I added a fairly standard setup for reading the keys like this:
...