webos-dev-mode

command module
v0.0.2-0...-32917ca Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 0

README

webOS Dev Mode CLI

GitHub release (latest by date) Build Go Report Card

A command-line tool to extend the webOS dev mode session timer.

Installation

Docker
Click to expand

A Docker image is available at ghcr.io/gabe565/webos-dev-mode

sudo docker run --rm -it ghcr.io/gabe565/webos-dev-mode cron --token SESSION_TOKEN
Homebrew (macOS, Linux)
Click to expand

Install webos-dev-mode from gabe565/homebrew-tap:

brew install gabe565/tap/webos-dev-mode
APT (Ubuntu, Debian)
Click to expand
  1. If you don't have it already, install the ca-certificates package

    sudo apt install ca-certificates
    
  2. Add gabe565 apt repository

    echo 'deb [trusted=yes] https://apt.gabe565.com /' | sudo tee /etc/apt/sources.list.d/gabe565.list
    
  3. Update apt repositories

    sudo apt update
    
  4. Install webos-dev-mode

    sudo apt install webos-dev-mode
    
RPM (CentOS, RHEL)
Click to expand
  1. If you don't have it already, install the ca-certificates package

    sudo dnf install ca-certificates
    
  2. Add gabe565 rpm repository to /etc/yum.repos.d/gabe565.repo

    [gabe565]
    name=gabe565
    baseurl=https://rpm.gabe565.com
    enabled=1
    gpgcheck=0
    
  3. Install webos-dev-mode

    sudo dnf install webos-dev-mode
    
AUR (Arch Linux)
Click to expand

Install webos-dev-mode-bin with your AUR helper of choice.

Manual Installation
Click to expand

Download and run the latest release binary for your system and architecture.

Usage

  1. Set up the webOS dev mode by following the webosbrew guide.
  2. Fetch the session token:
    ares-novacom --run 'cat /var/luna/preferences/devmode_enabled; echo'
    

Now you are ready to run webos-dev-mode commands.

  • To extend the webOS dev mode session:
    webos-dev-mode extend --token SESSION_TOKEN
    
  • To run a task which will extend the webOS dev mode session once per day:
    webos-dev-mode cron --token SESSION_TOKEN
    
  • To check the current session expiration:
    webos-dev-mode check --token SESSION_TOKEN
    

Flag values can also be set using environment variables. To do this, capitalize all characters, replace - with _, and prefix with WEBOS_. For example, --token=example would become WEBOS_TOKEN=example, and --request-timeout=10m would become WEBOS_REQUEST_TIMEOUT=10m.

For full command-line reference, see docs.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
generate/docs command
pkg
webosdev
Package webosdev provides a client for interacting with the webOS developer API.
Package webosdev provides a client for interacting with the webOS developer API.

Jump to

Keyboard shortcuts

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