Questions tagged [command]

A command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell. Use [command-pattern] for the design pattern.

A command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell.

Specifically, the term command is used in imperative computer languages. These languages are called this, because statements in these languages are usually written in a manner similar to the imperative mood used in many natural languages. If one views a statement in an imperative language as being like a sentence in a natural language, then a command is generally like a verb in such a language.

Many programs allow specially formatted arguments, known as flags, which modify the default behaviour of the command, while further arguments describe what the command acts on. Comparing to a natural language: the flags are adverbs, whilst the other arguments are objects.

More links:

10688 questions
3
votes
3 answers

Tying/binding Eclipse Commands to a swt button

In Eclipse you can use menu contributions to add toolbar buttons and menus that will call a command. Is there any way to do this to normal swt buttons, apart from programmatically calling the command onclick?
AntóinÓg
  • 511
  • 3
  • 19
3
votes
1 answer

ARM - How to pass a parameter to commandToExecute with spaces?

I am building an ARM template that uses Azure templates for deployment, so that it can be used as 'stock' image for users to deploy. One of the requirements is that an end user inputs the computer description as a parameter. Parameter: "psVariable":…
Beefcake
  • 733
  • 2
  • 12
  • 37
3
votes
2 answers

How to select parts of sentences in strings (C++)

I am making a command line program, and I was wondering how to get different parts of sentences, so lets say if someone entered cd Windows/Cursors, it would detect (with an if statement) that they entered cd and then (in that same if statement) it…
Anonymous
  • 355
  • 2
  • 14
3
votes
2 answers

How to convert Node.js command line app to single executable?

I built simple command line application using commander.js for Node.js platform. Now I want to compile it to simple exe file, Which I can execute directly. Means I want single executable file for complete application This is my application…
ssp singh
  • 152
  • 1
  • 14
3
votes
3 answers

Binding to Dependency Property which is, in turn, bound to another binding source

It's hard to explain but i'll do my best. I wanted to have a reusable control that had 3 buttons, one meant for creation of entities, another for edition and another for deletion, here's the abbreviated XAML of the relevant part. --