feat: ability to add banner (#20)
Lets you add a custom banner. ```sh create-index src -u --banner "/* eslint-disable */" ``` ```js /* eslint-disable */ // @create-index import xxx ... ```
This commit is contained in:
committed by
Gajus Kuizinas
parent
d7e2528999
commit
fdb17d0179
@@ -86,6 +86,7 @@ Options:
|
||||
files that start with "'create index';\n" (create-index index
|
||||
file). Updates found index files. Does not create new index
|
||||
files. [boolean] [default: false]
|
||||
--banner Add a custom banner at the top of the index file [string]
|
||||
|
||||
Examples:
|
||||
create-index ./src ./src/utilities Creates or updates an existing
|
||||
|
||||
Reference in New Issue
Block a user