Skip to content

Commit

Permalink
Move commandline handling to Java
Browse files Browse the repository at this point in the history
The gnirehtet commands were exposed through bash ("gnirehtet", for Linux
and Mac OS) and batch ("gnirehtet.cmd", for Windows) scripts.

Move the handling to the Java code, so the behavior is consistent across
both platforms.

Consequently, rename relay.jar to gnirehtet.jar.
  • Loading branch information
rom1v committed Aug 4, 2017
1 parent 736aff8 commit e0a7bdc
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 376 deletions.
16 changes: 4 additions & 12 deletions README.md
Expand Up @@ -45,7 +45,7 @@ Download the [latest release][latest]:
Then extract it. You get three files:
- `gnirehtet`
- `gnirehtet.apk`
- `relay.jar`
- `gnirehtet.jar`


## Run (simple)
Expand Down Expand Up @@ -97,12 +97,6 @@ To stop a client:

./gnirehtet stop [serial]

On Windows, the server is started in a separate window. To stop it, either close
the window or kill the server from anywhere:

gnirehtet killserver # stop the relay server only
gnirehtet kill [serial] # also stop the client

The _serial_ parameter is required only if `adb devices` outputs more than one
device.

Expand All @@ -111,14 +105,12 @@ For advanced options, call `./gnirehtet` without arguments to get more details.

## Run manually

The `gnirehtet` script just exposes an interface for calling simple commands.
You can call them manually.

_Note: On Windows, replace `adb` by `adb.exe`._
The `gnirehtet` program exposes a simple command-line interface that executes
lower-level commands. You can call them manually instead.

To start the relay server:

java -jar relay.jar
java -jar gnirehtet.jar relay

To install the apk:

Expand Down
195 changes: 0 additions & 195 deletions gnirehtet

This file was deleted.

159 changes: 0 additions & 159 deletions gnirehtet.cmd

This file was deleted.

0 comments on commit e0a7bdc

Please sign in to comment.