The ⚡ superfast ⚡ CLI tool to create file trees at the drop of a hat
If you already have
filetinstalled on your computer, you may want to update to the latest version.
- Download (latest or desired version)
filet.exefrom the releases page - Add the path of the folder where you stored
filet.exeto the system PATH variable like this - (Optional) Restart your computer and Filet is ready to be used in your favorite terminal! 🥳🎆
Use the --help flag for instructions
$ filet --help
usage: main.py [-h] [--version] [--update] [--root [ROOT]] [--notree] struc
optional arguments:
-h, --help show this help message and exit
INFO:
--version, -v Prints out current version and release date of Filet
--update, -u Makes the update checker verbose
CREATE:
--root [ROOT], -r [ROOT]
Location of root directory to create the filetree
struc The structure of the filetree in filet syntax
--notree File tree will not be logged to console
| item | syntax | example1 | example2 |
|---|---|---|---|
| file | {file_name1}.{extension}+{file_name2}.{extension} |
hello.py |
server.js+auth.js |
| folder | {folder_name1}[]+{folder_name2}[] |
src[] |
api[]+auth[] |
| tree | {folder_name}[{file1}+{file2}+...] |
src[main.jsx+data[users.json]] |
- Create file tree in current directory
$ filet dir1[f1.txt+f2.txt+dir2[f3.txt]]
✔ Successfully created file tree
▼ dir1
∟ f1.txt
∟ f2.txt
▼ dir2
∟ f3.txt
- Create file tree in specified directory using
-ror--rootarg
-
Absolute path
$ filet -r C://Users//ADMIN myfolder[images[]+important[bday.txt+todos.txt]]+software[README.txt]
Creates file tree inC://Users//ADMINdirectory -
Relative path
$ filet --root ../tests myfolder[images[]+important[bday.txt+todos.txt]]+software[README.txt]
Creates the file tree in thetestsfolder in parent directory of current directory (in which the terminal runsfiletcommand)
Prefix the file or folder name in the filet structure argument to add it to a .gitignore file in the filet rootlocation
$ filet -r D://Projects/pie_py src[main.py+pie.py+*ingredients.json+*tests[make_pie.py]]
This would create the file tree as usual, but with an additional file at D://Projects/pie_py/.gitignore, which contains -
src/ingredients.json
src/tests
When you initialize a git repository in
D://Projects/pie_py, you will noticesrc/ingredients.jsonandsrc/testsare ignored by default by git
- Download the desired (preferably latest) version of
filet.exefrom the releases page. - Save it in the directory where you have previously installed
filet - 🎆 YAY! You have successfully updated
fileton your computer
- Filet automatically checks for updates each time it is run and will notify you about any new updates it finds.
- To make the update checking process verbose, use the
--updateor-uflag
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
