<commit_before># Build distribution tool for SenchaCMD

![Principle pic](https://github.com/antonfisher/dscmd/raw/master/docs/dscmd-principle.png)

```
$./dscmd.sh 
Build distribution tool for SenchaCMD v0.1.1 [beta]
Usage:
  ./dscmd.sh init
  ./dscmd.sh add-agent
  ./dscmd.sh remove-agent [--all]
  ./dscmd.sh agents-list
  ./dscmd.sh agents-test
  ./dscmd.sh build <application1,application2,...>
```

## Installation

* Copy `dscmd.sh` script to your Sencha applications workspace;
* Run `$./dscmd.sh init`.

## Usage

### Add agents (Ubuntu-based host)
* [Copy ssh key](https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2) to agent;
* Run `$./dscmd.sh add-agent`.

### Run distributed build
* Run `$./dscmd.sh build --all` to build all application in applications folder;
* Or run `$./dscmd.sh build applicationName1,applicationName2`.

## Under hood
```
for each agents {
    copy ssh key --> ssh --> apt-get install --> install sencha cmd
}

for each applications {
    rsync --> sencha app build --> rsync
}
```

## Release History
* 0.1.1 Beta release:
    * Support `build --all` flag;
    * Fix: `add-agent`
* 0.1.0 Initial release.

## ToDo
- [x] Configurable application path;
- [x] Show list of applications after script init;
- [x] Build all applicaitons in folder;
- [x] Show build progress;
- [x] Support for multi-host add-agent command.
- [x] Check application's build exit status;
- [x] Stop build after first fail;
- [ ] Show build time;
- [ ] Script command suggestions.<commit_msg>Release updates commit<commit_after># Build distribution tool for SenchaCMD

![Principle pic](https://github.com/antonfisher/dscmd/raw/master/docs/dscmd-principle.png)

```
$./dscmd.sh 
Build distribution tool for SenchaCMD v0.1.1 [beta]
Usage:
  ./dscmd.sh init
  ./dscmd.sh add-agent
  ./dscmd.sh remove-agent [--all]
  ./dscmd.sh agents-list
  ./dscmd.sh agents-test
  ./dscmd.sh build <application1,application2,...>
```

## Installation

* Copy `dscmd.sh` script to your Sencha applications workspace;
* Run `$./dscmd.sh init`.

## Usage

### Add agents (Ubuntu-based host)
* [Copy ssh key](https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2) to agent;
* Run `$./dscmd.sh add-agent`.

### Run distributed build
* Run `$./dscmd.sh build --all` to build all application in applications folder;
* Or run `$./dscmd.sh build applicationName1,applicationName2`.

## Under hood
```
for each agents {
    copy ssh key --> ssh --> apt-get install --> install sencha cmd
}

for each applications {
    rsync --> sencha app build --> rsync
}
```

## Release History
* 0.1.2 Beta release:
    * Configurable application path;
    * Show list of applications after script init;
    * Show build progress;
    * Support for multi-host add-agent command;
    * Check application's build exit status;
    * Stop build after first fail;
* 0.1.1 Beta release:
    * Support `build --all` flag;
    * Fix: `add-agent`;
* 0.1.0 Initial release.

## ToDo
- [ ] Show build time;
- [ ] Script command suggestions;
{'fraction_non_alphanumeric': 0.1500328299409061, 'fraction_numerical': 0.010177281680892974, 'mean_word_length': 3.297602256699577, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2030523', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1027, 'n_words': 308}