Questions tagged [cli]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

Filter by
Sorted by
Tagged with
0
votes
2answers
605 views

How should I manage user session in CLI application?

I'm developing a CLI based application. It has a "login" command to perform authentication: $ myapp login $ Type username: hector $ Type password: ***** $ Login success! Internally, myapp login ...
1
vote
2answers
56 views

How to write documentation for CLI app that requires stdin?

I am writing CLI program that can accept very long strings. For this reason I decided to pipe the data into the program as I would hit limitation of the shell / OS. How should these CLI program ...
0
votes
1answer
28 views

How to launch a detached child process in Node, and reuse it on subsequent executions if already running?

I want to write a Node CLI that leaves a server/daemon running in the background, so subsequent calls to the CLI are much faster, as it can just print the latest info from the daemon (which is already ...
1
vote
1answer
30 views

CLI and Lib package, where to put module loading code

My Software contains a lib package, a cli package and an arbitrary number of plugin packages. The plugin packages do the algorithmic work. The lib package basically just executes the plugins and ...
1
vote
2answers
119 views

Is MVC an architectural pattern for user-interactive applications only?

Is it correct that MVC is an architectural pattern only for user-interactive applications? (That is my understanding.) An application can interact with users via GUI or CLI. Does MVC apply to both ...
-2
votes
1answer
40 views

Should a CLI wrapper specify function defaults?

In my code let's say I have a function which does most of the work: def compute(x=3, y=5): ... And I have a CLI wrapper program using argparse. I intend end users to use the CLI program and not ...
0
votes
1answer
56 views

Combining web app and CLI to python package

I'm writing a program in Python that has two different entry points. There's a CLI that processes some data and needs to be installed to run hourly on a server, this populates a database. There's also ...
-2
votes
1answer
136 views

How to implement a CLI interaction with running java programm? [closed]

I would like your tipps about implemening a command line interface to interact with a running java application. Example: The Java Application is a webserver and a cli-client should interact with it: ...
2
votes
1answer
103 views

Put functionality in same executable with command-line flag, or put it in a separate executable?

Background: I am working on a service where the domain logic exists as a library, and then the actual executable is built on a web framework as a wrapper around the domain logic library. There is no ...
2
votes
1answer
81 views

Server-client CLI messaging design

I'm prototyping some single machine, single user software with a client-server model; the first client for which will be a CLI, but I expect a (local) webapp/GUI to come later. For the CLI, I'd like ...
4
votes
2answers
149 views

Grouping non-boolean command-line options

This is just a quick question about standard CLI-parsing design. Say we have: foo -abc for most CLI-parsers, a single - dash (as opposed to a double dash --) means you can group single letter ...
1
vote
1answer
2k views

Rich console UI

There are bunch of console programs and especially games using full redraw (not sure ho this correctly named) of console window. For example, look at output of linux top program -> http://upload....
2
votes
2answers
109 views

Choosing the right paradigm when building a GUI for an application

I'm building a GUI for a CL program and I have the following question Is it better to Have the GUI invoke the program behind the scenes using a shell with some options eg: If I were I were writing a ...
4
votes
2answers
4k views

Multi-level validation in C#

I have a Console project reads inputs from CSV file and tries to save them to database. For that, I created a class Person that maps a CSV row. The CSV file has two columns Name and Age. Person ...
38
votes
7answers
4k views

Is the development of CLI apps considered “backward”? [closed]

I am a DBA fledgling with a lot of experience in programming. I have developed several CLI, non interactive apps that solve some daily repetitive tasks or eliminate the human error from more complex ...
196
votes
5answers
37k views

What are good habits for designing command line arguments?

While developing the application I started to wonder - How should I design command line arguments? A lot of programs are using formula like this -argument value or /argument value. Solution which ...
0
votes
0answers
62 views

Character to show cut off file paths

I have a cli application, that has the option of displaying file paths in addition to typical output. Some file paths can be quite long so I want to cut the path off once it is longer than a certain ...
0
votes
1answer
2k views

How does one “secure” a python CLI-based application? [duplicate]

I have to provide a Python CLI-based program to one of my clients. I will give him both the compiled version (using py2exe or something simillar) of the application and the source code. The ...
2
votes
1answer
897 views

Is there a cross-platform way to open a TCP connection, send a HTTP post request and keep the connection open?

I'm searching for a way to open a TCP connection, send a HTTP post request and keep the connection open. It would be great if I can achieve this without administrator/root rights, from a command-line ...
2
votes
0answers
68 views

Where to output from large CLI app [closed]

I've built a reasonably sized CLI app with everything split across different classes and namespaces in a logical way. However many components need to render output from within themselves. Which seems ...
12
votes
4answers
26k views

Practical size limits of a Hashtable and Dictionary in c#

What are the practical limits for the number of items a C# 4 Dictionary or Hashtable can contain and the total number of bytes these structures can reasonable contain. I'll be working with large ...
3
votes
2answers
2k views

SVN command line client: checkout refused when LDAP password changed “svn: OPTIONS of” (repo) “authorization failed” (but works in TortoiseSVN)

When using the command line/terminal svn client, a colleague is getting "svn: OPTIONS of " [repo] "...authorization failed" error message when they attempt to checkout the repo to be their local ...
3
votes
2answers
2k views

OOP CLI menu structure organization?

This problem has kept me from pursuing a project I'm working on because it influences the entire structure of the application. This question has been briefly touched on here, but I feel that it wasn't ...
17
votes
9answers
5k views

How does a CLI-oriented programmer's workflow differ from a GUI-oriented one?

I've heard a lot about the advantages of doing less programming work in GUI apps and using more command-line tools (especially with regard to getting things done more efficiently). However, since I ...
14
votes
2answers
12k views

Is it crazy to develop a TUI today? [duplicate]

I'm starting to develop a new program. It's basically a database interface, run a few queries, show the data in a nice way and be able to easy input new data (like this website). Thinking about which ...
0
votes
2answers
956 views

Why to have an application with GUI on linux when command line is available?

If the question appears to be off topic then please migrate to some other suitable domain on stackexchange. Q.why to have GUI along with CLI, when you already have command line interface? I'm ...
0
votes
1answer
929 views

Best way to build a hierarchy CLI menu?

I want to build a command line interface with menus and sub-menus and eventually the leafs of the tree should be operations like.. bank management -> account management -> add acount (insert account ...
7
votes
1answer
2k views

How can a computer render a CLI/console along with a GUI?

I'm confused when looking into graphics - specifically with operating systems. I mean, how can a computer render a CLI/console along with a GUI? GUI's are completely different from text. And how can ...
1
vote
5answers
194 views

How to structure reading of commands given at a(n interactive) CLI prompt?

Let's say I have a program called theprogram (the marketing team was on strike when the product was to be named). I start that program by typing, perhaps not surprisingly, the program name as a ...