# rung: (Ru)st + A(ng)ular Useful command-line tools for Angular projects written in Rust. Commands: - List - New Application - Serve - Check JSON - Check Header ## Getting Help Use the `--help` argument to get more details about the program or specific command: ```shell rung --help rung --help ``` ## Commands ### List Provides listing of the contents of the `angular.json` file. ```shell USAGE: rung ls [OPTIONS] [SUBCOMMAND] OPTIONS: -c, --config [default: angular.json] SUBCOMMANDS: apps List all applications help Prints this message or the help of the given subcommand(s) libs List all libraries ``` Examples: ```shell # list all projects and libraries rung ls # list all applications rung ls apps # list all libraries rung ls libs ``` By default, the CLI expects the `angular.json` file to be in the current directory. It is also possible to provide a custom path: ```shell rung ls libs -c ./assets/angular/angular.json ``` ### New Application Creates a new Angular application with [Angular CLI]. Requires an [Angular CLI] to be installed. ```shell USAGE: rung new [OPTIONS] ARGS: The name of the new workspace and initial project. OPTIONS: -d, --directory The directory name to create the workspace in. ``` Differences to running `ng new ` command directly: - does not install dependencies automatically by default - does not configure Git repository by default Examples: ```shell # creates new application `app1` in the current directory rung new app1 # creates a new application `app2` in the `/tmp/apps` directory rung new app2 -d /tmp/apps ``` ### Serve Runs a lightweight web server. ```shell USAGE: rung serve [FLAGS] [OPTIONS] ARGS: Target directory FLAGS: -o, --open Opens the url in default browser. OPTIONS: -h, --host Host address [default: 127.0.0.1] -p, --port Port number [default: 8080] ``` Examples: ```shell # serves application at http://localhost:8081 rung serve ./dist/app1 -p 8081 # serves the application and opens default system browser rung serve ./dist/app1 -p 8081 --open ``` ### Check JSON Verifies that the JSON file is valid based on the JSON schema. Usage: ```shell rung check json --file --template