homescript-cli

command module
v0.8.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: GPL-2.0 Imports: 1 Imported by: 0

README

homescript-cli

REPL

Homescript-cli's original purpose is to represent a powerful command-line-interface for the Smarthome server. Sample output of a REPL session can be found below

mik@mik-pc ~/g/s/g/M/smarthome (main) » homescript -i "http://cloud.box:8123" -u admin -p admin
Server: v0.0.15-beta:go1.18 on http://cloud.box:8123
Welcome to Homescript interactive v0.4.0-beta. CLI commands and comments start with #
admin@homescript> switch('s2', off) 

Help Output

mik@mik-pc ~/g/s/g/M/smarthome (main) » homescript --help
homescript-cli v0.4.0-beta : A command line interface for the smarthome server using homescript
A working and set-up Smarthome server instance is required.
For more information and usage documentation visit:

  The Homescript Programming Language:
  - https://github.com/MikMuellerDev/homescript

  The CLI Interface For Homescript:
  - https://github.com/MikMuellerDev/homescript-cli

  The Smarthome Server:
  - https://github.com/MikMuellerDev/smarthome

Usage:
  homescript [flags]
  homescript [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  info        Smarthome Server Debug Info
  pipe        Run Code via Stdin
  run         Run a homescript file
  switches    List switches

Flags:
  -h, --help              help for homescript
  -i, --ip string         Url used for connecting to smarthome (default "http://localhost")
  -p, --password string   smarthome password used for connection
  -s, --silent            no output
  -u, --username string   smarthome user used for connection
  -v, --verbose           verbose output
      --version           version for homescript

Use "homescript [command] --help" for more information about a command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL