JS library_cmd - gd-99/symbiogd GitHub Wiki

A terminal command.

Since 1.0alpha1.

Methods

  • getTerminal() : Get this command's terminal. Returns: [Webos.Terminal](JS library_terminal)
  • run(callback) : Run this command. Returns: [Webos.Operation](JS library_operation)
  • [Webos.Callback](JS library_callback) callback The callback.

Static methods

  • Webos.Cmd.execute(cmd, callback) : Run a command.
  • String cmd The command to execute.
  • [Webos.Callback](JS library_callback) callback The callback.
  • Number undefined.getId() : Recuperer l'identifiant du terminal.
  • Toutes undefined.data() : Recuperer toutes les donnees du terminal.
  • La undefined.get(key) : Recuperer une donnee du terminal.
  • String key La clef de la donnee.
  • undefined.setLocation(path) : Set this terminal's location.
  • String path The new location.
  • undefined.relativePath(path, callback) : Recuperer un chemin absolu depuis un chemin relatif par rapport au dossier courant. Deprecated: Use absolutePath()..
  • String path Le chemin relatif par rapport au dossier courant.
  • [Webos.Callback](JS library_callback) callback La fonction de rappel qui sera appelee une fois que le chemin sera converti.
  • undefined.absolutePath(path) : Recuperer un chemin absolu depuis un chemin relatif par rapport au dossier courant.
  • String path Le chemin relatif par rapport au dossier courant.
  • undefined.echo(output) : Output some content.
  • string output The content.
  • undefined.prompt(callback, options) : Prompt some question.
  • Function callback The callback.
  • object options Options, which are mainly "label" and "type".
  • [Webos.Cmd](JS library_cmd) undefined.enterCmd(cmd, callback) : Executer une commande dans le terminal.
  • String|Object cmd La commande a executer, ou les options a passer au constructeur de Webos.Cmd.
  • [Webos.Callback](JS library_callback) callback La fonction de rappel qui sera appelee une fois que la commande aura ete executee.
  • undefined.refreshData(callback) : Rafraichir les donnees sur le terminal.
  • [Webos.Callback](JS library_callback) callback La fonction de rappel qui sera appelee une fois que les donnees auront ete rafraichies.
  • undefined.init(callback) : Initialiser le terminal.
  • [Webos.Callback](JS library_callback) callback La fonction de rappel qui sera appelee une fois que le terminal aura ete initialise.
⚠️ **GitHub.com Fallback** ⚠️