Refactor build and run

Get rid of some duplicate code

Change-Id: I73e6d463e7436c0d4f315c9e3f4c61dfae13597d
2 files changed
tree: 56247eb6520cd4451756ade2992cda0ee463f1c8
  1. fargo-test/
  2. src/
  3. .gitignore
  4. AUTHORS
  5. Cargo.lock
  6. Cargo.toml
  7. CONTRIBUTING.md
  8. LICENSE
  9. PATENTS
  10. README.md
README.md

fargo

Fargo is a prototype Fuchsia-specific wrapper around Cargo.

USAGE:
    fargo [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v               Print verbose output while performing commands

SUBCOMMANDS:
    build          Build binary targeting Fuchsia device or emulator
    build-tests    Build for Fuchsia device or emulator
    help           Prints this message or the help of the given subcommand(s)
    restart        Stop all Fuchsia emulators and start a new one
    run            Run binary on Fuchsia device or emulator
    ssh            Open a shell on Fuchsia device or emulator
    start          Start a Fuchsia emulator
    stop           Stop all Fuchsia emulators
    test           Run unit tests on Fuchsia device or emulator

The fargo-test directory contains something one can use to test-drive.

At the moment fargo requires the FUCHSIA_ROOT environmental variable be set to the path to a Fuchsia build. The goal is to transition fargo to using something like an SDK instead.

Currently fargo does not support building artifacts that need additional libraries.