ghcp 1.0.0
ghcp: ^1.0.0 copied to clipboard
A powerful, lightweight CLI tool for downloading files and directories from GitHub repositories without cloning. Features intelligent output handling, custom filename support, and direct directory extraction.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate ghcp
Use it
The package has the following executables:
$ ghcp
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ghcp
With Flutter:
$ flutter pub add ghcp
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
ghcp: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ghcp/cli/cli_runner.dart';
import 'package:ghcp/exceptions.dart';
import 'package:ghcp/file_system_helper.dart';
import 'package:ghcp/github/github_api_client.dart';
import 'package:ghcp/github/github_repository_info.dart';
import 'package:ghcp/github/models/github_content.dart';
import 'package:ghcp/github_content_downloader.dart';