Implement a click -based CLI utility in task module.py that provides a command called stream info using…
Implement a click -based CLI utility in task module.py that provides a command called stream info using…: a task in repo2rlenv-code-instruct (Harbor dataset). The command should: 1. Open the file using click.File type (mode 'r' ) 2. Print encoding:<value where <value is the file object's .encoding…
The task
The command should: 1. Open the file using `click.File` type (mode `'r'`) 2. Print `encoding:<value>` where `<value>` is the file object's `.encoding` attribute (or `"unknown"` if absent) 3. If `--show-seekable` is passed, also print `seekable:<true|false>` based on calling `.seekable()` on the file object
Part of FineEnvs/repo2rlenv-code-instruct.