Improve the clarity of the following request [code] Name: <value> Title: <value>…
- User
Improve the clarity of the following request
codeCode a monolithic JavaScript CLI application that works as follows: The default command of this CLI application is the path to a directory provided by the user. This application will traverse the directory to collectively extract all filenames (including extensions) and names of all subdirectories in the directory. The collection of filenames and names of subdirectories are hierarchically structured the same way they are hierarchically structured in the directory. These filenames and subdirectory names will be renamed in this way: These filenames and subdirectory names are the names of data units in a dataset to be provided by the user via the `--edit` flag. The dataset path set can be viewed via the `--config or -c` flag. The data units are in the following key-value pair format: ``` Name: <value> Title: <value> Description: <value> ``` These filenames and subdirectory names are the values of the `Name` keys of data units in the dataset. The value of the `Title` key is what a filename or subdirectory name is renamed with. Renaming won't change the hierarchical structure of these filenames and subdirectory names. After then, the hierarchical structure of filenames and subdirectory names will be styled using HTML, CSS, and JavaScript, saved to an html file, and path to the html is printed out on the console. The path to an html file is provided via the `--edit` flag and can be viewed if set via the `--config` flag. When the html is rendered, the hierarchical structure of filenames and subdirectory names is displayed where subdirectories can be folded and expanded. The filenames and subdirectories are color coded. There are extensions that precede the filenames enclosed in round brackets and color coded. This emoji ℹ️ precedes subdirectory names and the filenames with extensions, which when clicked shows the original names of the renamed subdirectory names and filenames. Include a comprehensive help menu accessible via '-h' or '--help', detailing all available commands and their usage. Additionally, implement robust error handling with clear user feedback. Moreover, use CommonJs, and make a nice name for this application. - Assistant
Certainly! Here is a revised version of the request with improved clarity:
Project Request: Monolithic JavaScript CLI Application
Overview:
Create a monolithic JavaScript CLI application with the following functionality:
-
Default Command:
- Accept a directory path from the user.
-
- User
You forgot to specify that the file extensions in the HTML output is enclosed in round brackets and located before the filenames. The ℹ️ emoji precedes the extensions and filenames.
- Assistant
Thank you for the clarification. Here is the revised request incorporating the additional details:
Project Request: Monolithic JavaScript CLI Application
Overview:
Create a monolithic JavaScript CLI application with the following functionality: