<commit_before>## Description
The `prompt` command starts `gnmic` in an interactive prompt mode with the following auto-completion features:

* All `gnmic` commands names and their flags are suggested.
* Values for the flags that rely on YANG-defined data (like `--path`, `--prefix`, `--model`,...) will be dynamically suggested.  
The auto-completions are generated from the YANG modules d with the `--file` and `--dir` flags.
* Flags with the fixed set of values (`--format`, `--encoding`, ...) will get their values suggested.
* Flags that require a file path value will auto-suggest the available files as the user types.


### Usage

`gnmic [global-flags] prompt [local-flags]`

### Flags

#### file
A path to a YANG file or a directory with YANG files which `gnnmic` will use to generate auto-completion for YANG-defined data (paths, models).

Multiple `--file` flags can be supplied.

#### dir
A path to a directory which `gnmic` would recursively traverse in search for the additional YANG files which may be required by YANG files specified with `--file` to build the YANG tree.

Multiple `--dir` flags can be supplied.
<commit_msg>added a comment that --dir can point to a file<commit_after>## Description
The `prompt` command starts `gnmic` in an interactive prompt mode with the following auto-completion features:

* All `gnmic` commands names and their flags are suggested.
* Values for the flags that rely on YANG-defined data (like `--path`, `--prefix`, `--model`,...) will be dynamically suggested.  
The auto-completions are generated from the YANG modules d with the `--file` and `--dir` flags.
* Flags with the fixed set of values (`--format`, `--encoding`, ...) will get their values suggested.
* Flags that require a file path value will auto-suggest the available files as the user types.


### Usage

`gnmic [global-flags] prompt [local-flags]`

### Flags

#### file
A path to a YANG file or a directory with YANG files which `gnnmic` will use to generate auto-completion for YANG-defined data (paths, models).

Multiple `--file` flags can be supplied.

#### dir
A path to a directory which `gnmic` would recursively traverse in search for the additional YANG files which may be required by YANG files specified with `--file` to build the YANG tree.

Can also point to a single YANG file instead of a directory.

Multiple `--dir` flags can be supplied.

{'fraction_non_alphanumeric': 0.09802271771140092, 'fraction_numerical': 0.0, 'mean_word_length': 3.9541666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1156465', 'n_tokens_mistral': 653, 'n_tokens_neox': 628, 'n_words': 349}