Skip to content

Commit 62a6ae6

Browse files
authored
Merge pull request #4 from cqb13/dev
Updated CLI
2 parents 55f1dc9 + 4399520 commit 62a6ae6

File tree

11 files changed

+687
-464
lines changed

11 files changed

+687
-464
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ jobs:
5454
run: |
5555
choco install zip
5656
cd target/${{ matrix.target }}/release
57-
zip fmap-0.1.4-${{ matrix.target }}.zip fmap.exe
57+
zip fmap-0.1.5-${{ matrix.target }}.zip fmap.exe
5858
cd ../../..
5959
6060
- name: Create tar.gz file on macOS
6161
if: ${{ matrix.os == 'macos-latest' }}
6262
run: |
6363
chmod +x target/${{ matrix.target }}/release/fmap
64-
tar -zcf target/${{ matrix.target }}/release/fmap-0.1.4-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release fmap
64+
tar -zcf target/${{ matrix.target }}/release/fmap-0.1.5-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release fmap
6565
chmod +x target/${{ matrix.target2 }}/release/fmap
66-
tar -zcf target/${{ matrix.target2 }}/release/fmap-0.1.4-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release fmap
66+
tar -zcf target/${{ matrix.target2 }}/release/fmap-0.1.5-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release fmap
6767
6868
- name: Upload release and assets to GitHub
6969
uses: svenstaro/upload-release-action@v2
7070
with:
7171
repo_token: ${{ secrets.GITHUB_TOKEN }}
72-
tag: "release-0.1.4-${{ github.run_number }}"
73-
release_name: fmap 0.1.4
72+
tag: "release-0.1.5-${{ github.run_number }}"
73+
release_name: fmap 0.1.5
7474
file_glob: true
75-
file: target/*/release/fmap-0.1.4-*.{zip,tar.gz}
75+
file: target/*/release/fmap-0.1.5-*.{zip,tar.gz}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
[package]
22
name = "fmap"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2021"
55
authors = ["cqb13 <cqb13.dev@gmail.com>"]
66
license = "MIT"
77
description = "A CLI tool for displaying a tree like view of files and directories."
8-
readme = "README.md"
8+
readme = "./README.md"
99
homepage = "https://github.com/cqb13/fmap"
1010
repository = "https://github.com/cqb13/fmap"
1111
keywords = ["cli", "file-tree", "folder-tree"]
1212
categories = ["command-line-utilities"]
13+
exclude = [
14+
".gitignore",
15+
".github/*"
16+
]
1317
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1418

1519
[dependencies]
20+
21+
[[bin]]
22+
name = "fmap"
23+
path = "src/main.rs"

README.md

Lines changed: 16 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,33 @@ The following commands are available for use with Fmap:
2424

2525
```bash
2626
# Scan Commands
27-
fmap # Scans from the current directory
28-
fmap -s # Scans with default options
29-
fmap -s -e -fs -ds -fc # Scans with optional features: show file endings, file sizes, directory sizes, and file counts in directories
30-
fmap -sp "path" # Scans from a custom relative path
27+
fmap scan # Scans the current directory with options for file endings, sizes, and counts
28+
fmap scan-path --path "path" # Scans a specific path with options for file endings, sizes, and counts
3129

3230
# Configuration Commands
33-
fmap -c # Creates/reset the configuration file
31+
fmap config # Creates or resets the configuration file
3432

3533
# Ignored Directories and Files Commands
36-
fmap -add -dir "directory" # Adds a directory to the ignored list
37-
fmap -add -file "filename" # Adds a file to the ignored list
38-
fmap -rmv -dir "directory" # Removes a directory from the ignored list
39-
fmap -rmv -file "filename" # Removes a file from the ignored list
40-
fmap -ls -dir # Lists all ignored directories
41-
fmap -ls -file # Lists all ignored files
42-
43-
# Other Commands
44-
fmap -i # Adds the binary to the PATH environment variable
45-
fmap -v # Prints the version
46-
fmap -h # Prints the help
34+
fmap add --type "file/dir" --name "name" # Adds a file or directory to the ignored list
35+
fmap remove --type "file/dir" --name "name" # Removes a file or directory from the ignored list
36+
fmap list --type "file/dir" # Lists all ignored files or directories
37+
38+
# Installation Command
39+
fmap install # Adds the binary to the PATH environment variable
40+
41+
# Version and Help Commands
42+
fmap version # Prints the version
43+
fmap help # Prints the help
4744
```
4845

49-
**Note:** Replace "path," "directory," and "filename" with your desired paths, directories, and filenames. You can customize the scan options with flags such as `-e` for file endings, `-fs` for file sizes, `-ds` for directory sizes, and `-fc` for file counts in directories.
46+
**Note:** Replace "path," "directory," and "filename" with your desired paths, directories, and filenames. Customize the scan options with flags such as `--endings`, `--file-sizes`, `--directory-sizes`, and `--file-counts-in-directories` for detailed information.
5047

5148
## Example Output
5249

5350
### Command
5451

5552
```bash
56-
fmap scan -e -fc
53+
fmap scan --endings --file-counts-in-directories
5754
```
5855

5956
### Output
@@ -80,50 +77,7 @@ You can try out Fmap online at [https://foldermap.cqb13.dev](https://foldermap.c
8077

8178
## Installation
8279

83-
### macOS
84-
85-
1. Download the latest macOS release from [GitHub](https://github.com/cqb13/fmap/releases) or build from source
86-
2. Extract the zip file
87-
3. Open the folder with the extracted file in your terminal
88-
4. Run the following command:
89-
90-
```bash
91-
./fmap -i
92-
```
93-
94-
5. restart your terminal and run the following command:
95-
96-
```bash
97-
fmap -v
98-
```
99-
100-
6. If the version is printed, you have successfully installed Fmap, if not, please submit an issue on [GitHub](https://github.com/cqb13/fmap/issues), with the error message.
101-
102-
### Windows
103-
104-
1. Download the latest windows release from [GitHub](https://github.com/cqb13/fmap/releases) or build from source
105-
2. Extract the zip file
106-
3. Open the folder with the extracted file in your terminal (you must use administrator privileges)
107-
4. Run the following command:
108-
109-
```bash
110-
./fmap.exe -i
111-
```
112-
113-
5. restart your computer
114-
6. Open your terminal and run the following command:
115-
116-
```bash
117-
fmap -v
118-
```
119-
120-
7. If the version is printed, you have successfully installed Fmap, if not, please submit an issue on [GitHub](https://github.com/cqb13/fmap/issues), with the error message.
121-
122-
### Alternative Installation
123-
124-
1. Clone the repository: `git clone https://github.com/cqb13/fmap.git`
125-
2. Navigate to the project directory: `cd fmap`
126-
3. Build and install with Cargo: `cargo install --path .`
80+
Refer to the "Installation" section in the original markdown for platform-specific installation instructions.
12781

12882
## Contributing
12983

0 commit comments

Comments
 (0)