From a3b513a23b4ee6ce44d12710c4312e4159249672 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 18 Nov 2018 22:49:11 +0100 Subject: [PATCH] update readme --- README.md | 53 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f1d7e16..1902014 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,14 @@ author: xdrm-brackets * [1. Create build file](#1-create-build-file) * [2. Run on the target](#2-run-on-the-target) * [II. Commands](#ii-commands) - + [1) Comments](#1-comments) - + [2) Install/remove Packages](#2-installremove-packages) - + [3) Setup configuration](#3-setup-configuration) - + [4) Service management](#4-service-management) - + [5) Custom scripts](#5-custom-scripts) - + [6) Copy files](#6-copy-files) - + [7) Aliases](#7-aliases) + + [1) Sections](#1-sections) + + [2) Comments](#2-comments) + + [3) Install/remove Packages](#3-installremove-packages) + + [4) Setup configuration](#4-setup-configuration) + + [5) Service management](#5-service-management) + + [6) Custom scripts](#6-custom-scripts) + + [7) Copy files](#7-copy-files) + + [8) Aliases](#8-aliases) * [III. Path Expressions](#iii-path-expressions) + [1) Syntax](#1-syntax) + [2) File Formats](#2-file-formats) @@ -70,7 +71,7 @@ $ go get -u github.com/xdrm-brackets/nix-amer ###### 1. Create build file -The first step is to write your build file according to the installation you want. While writing your build file you can check the syntax by using the `-dry-run` command-line argument as follows : +The first step is to write your build file according to the installation you want. While writing it you can check the syntax and validate instructions by using the `-dry-run` command-line argument as follows : ```bash $ nix-amer -p apt-get -dry-run @@ -82,7 +83,7 @@ $ nix-amer -p apt-get -dry-run ###### 2. Run on the target -Once your build file is correct and fulfills your needs, you can log in to the target machine, install the nix-amer and run it with your build file. Nix-amer's rich and colorful command-line output will give you a good feedback to rapidly fix problems. +Once your build file is correct and fulfills your needs, you can log in to the target machine, install nix-amer and run it with your build file. The rich and colorful command-line output will give you a good feedback to rapidly fix problems. @@ -94,17 +95,23 @@ Once your build file is correct and fulfills your needs, you can log in to the t ### II. Commands -Your whole setup remains in 1 only build file. Each line contains one instruction, the list of instructions is listed below. +Your whole setup remains in only one file. Each line contains one instruction, the list of instructions is listed below. -#### 1) Comments +#### 1) Sections -Each line beginning with one of the following characters : `[`, `#` or `;` is considered a comment and is not interpreted. +Each instruction is enclosed in a section (_cf. ini file format_), a section definition stands on a line where the name of the section is surrounded by `[` and `]`. Each section is executed in parallel ; the special section named `pre` is executed before every other. -#### 2) Install/remove Packages +#### 2) Comments + +Each line beginning with one of the following characters : `#` or `;` is considered a comment and is not interpreted. + + + +#### 3) Install/remove Packages These instructions allow you to interact with the package system available on your system. @@ -122,7 +129,7 @@ Remove the listed packages. If more than one, use spaces to separate package nam -#### 3) Setup configuration +#### 4) Setup configuration This instruction allow you to set fields of configuration files without the need of an editor and in a developer-readable manner. @@ -134,7 +141,7 @@ Update a configuration file where \ is a dot-separated human-readable [pa -#### 4) Service management +#### 5) Service management These instructions allow you to interact with the service system (_cf. [systemd](https://github.com/systemd/systemd)_). @@ -145,7 +152,7 @@ Perform the action on services. If more than one, use spaces to separate service -#### 5) Custom scripts +#### 6) Custom scripts This instruction allows you to use custom scripts for complex operations. @@ -153,9 +160,9 @@ This instruction allows you to use custom scripts for complex operations. run