Gitfolder
is a tool that allows users to download a folder from a GitHub repository using a command-line interface. The tool is built on top of the go-github library, a Go client library for accessing the GitHub API v3.
To use the Go Commandline Publisher, follow these steps:
-
Download the Binary: You can download the pre-built binaries for different operating systems from the Releases page.
-
Command Syntax: The basic command syntax is as follows:
./gitfolder <GitHub_Folder_Link>
Replace
<GitHub_Folder_Link>
with the URL of the GitHub folder you want to download. -
Example: For example, to download a folder from the following GitHub URL:
Run the command:
./gitfolder https://github.com/username/repository/tree/master/folder/[targeted_folder]
The tool will create a folder named
mains
and download the files inside that folder.
We welcome contributions to the Gitfolder ! If you find any issues or have ideas for improvements, feel free to create an issue or submit a pull request. Please follow the guidelines in CONTRIBUTING.md
for contributing.
To build the Go Commandline Publisher, the following steps are required:
-
Clone the repository:
git clone https://github.com/Niceblueman/gitfolder.git
-
Change directory to the repository:
cd gitfolder
-
Build the executable:
go build -v -ldflags "-s -w" -o bin/gitfolder .
-
Run the executable:
./bin/gitfolder <GitHub_Folder_Link>
The Go Commandline Publisher is supported on the following platforms:
- Linux
- Windows
- macOS
The Gitfolder is distributed under the BSD-style license. See the LICENSE file for details.