<commit_before>atg-utils
===

Command line utilities for ATG


# Installation

`npm install -g atg-utils`

Create a .atgrc.json file in your user's home with the following content:

```js
{
    "editor":"<your favorite editor, ex vi, subl>",
    "dynamoHome":"<path to dynamo home>"
}

```

Ex:

```js
{
    "editor":"subl",
    "dynamoHome":"/some/path/ATG11.1/home"
}

```

Your user's home folder should be something like:

 - unix : `/home/<user>`
 - windows : `C:\\users\\<user>`
 - osx : `/Users/<user>`


# Usage

`atg <command>`

## Commands

- `atg list`

Lists the components that have a .properties in your `$DYNAMO_HOME/localconfig`

- `atg logs`

List the log levels that are overriden in your localconfig

Ex:

```sh
> atg logs
component                                                                                        loggingDebug  loggingInfo
-----------------------------------------------------------------------------------------------  ------------  ----------                                                                                                              
/atg/commerce/PipelineManager                                                                    false         true       
/atg/commerce/custsvc/returns/ReturnFormHandler                                                  true                     
/atg/commerce/custsvc/returns/ReturnManager                                                      false                    
/atg/commerce/custsvc/returns/ReturnTools                                                        true           
```

- `atg edit <nucleus-path>`

Opens your editor to edit a .properties in your localconfig

Ex:

`atg edit /some/test/Component`<commit_msg>doc: update install doc to reflect config change<commit_after>atg-utils
===

Command line utilities for ATG


# Installation

`npm install -g atg-utils`

Create a .atgconfig file in your user's home with the following content:

(if you don't create the file, you will be asked each param on first startup)

```bash
editor=<editor>
dynamoHome=<dynamo home>
```

Ex:

```bash
editor=subl
dynamoHome=/somewhere/foo/bar/ATG/ATG11.2/home
```


Your user's home folder should be something like:

 - unix : `/home/<user>`
 - windows : `C:\\users\\<user>`
 - osx : `/Users/<user>`


# Usage

`atg <command>`

## Commands

- `atg list`

Lists the components that have a .properties in your `$DYNAMO_HOME/localconfig`

- `atg logs`

List the log levels that are overriden in your localconfig

Ex:

```sh
> atg logs
component                                                                                        loggingDebug  loggingInfo
-----------------------------------------------------------------------------------------------  ------------  ----------                                                                                                              
/atg/commerce/PipelineManager                                                                    false         true       
/atg/commerce/custsvc/returns/ReturnFormHandler                                                  true                     
/atg/commerce/custsvc/returns/ReturnManager                                                      false                    
/atg/commerce/custsvc/returns/ReturnTools                                                        true           
```

- `atg edit <nucleus-path>`

Opens your editor to edit a .properties in your localconfig

Ex:

`atg edit /some/test/Component`
{'fraction_non_alphanumeric': 0.14878397711015737, 'fraction_numerical': 0.0017167381974248926, 'mean_word_length': 1.0896592946802153, 'pattern_counts': {'":': 4, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1233738', 'n_tokens_mistral': 877, 'n_tokens_neox': 818, 'n_words': 240}