Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FastAlien committed May 13, 2023
1 parent f5e9c12 commit cb54b15
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,48 @@ contests that require submitting a solution as a single source file.

#### Prerequisites

* node
* npm
* yarn (optional)
* Node
* NPM
* Yarn (optional)

#### Installation from npm

```
```shell
npm install -g cpp-merge
```

#### Installation from source

##### Clone git repository

```
git clone git@github.com:RandomVoid/cpp-merge.git
```shell
git clone git@github.com:FastAlien/cpp-merge.git
```

##### Build and link package
##### Build

Using npm:
Go to the project directory and run the following commands.

```
npm install
For NPM:

```shell
npm ci
npm run build
npm link
```

Or using yarn:
For Yarn:

```
```shell
yarn
yarn build
yarn link
```

##### Link package

Go to the project directory and run the following command:

```shell
npm -g link
```

## Usage
Expand Down Expand Up @@ -68,26 +76,26 @@ alphabetically. Any of the processed header and source files will not be changed

Display the build-in help:

```
```shell
cpp-merge --help
```

#### Usage examples

Process `main.cpp` and display produced content on the standard output:

```
```shell
cpp-merge main.cpp
```

Process `main.cpp` and save output to file `output.cpp`:

```
```shell
cpp-merge --output output.cpp main.cpp
```

Specify additional include and source directory:

```
```shell
cpp-merge --include ../include --source ../src main.cpp
```

0 comments on commit cb54b15

Please sign in to comment.