GitHubContentDownloader constructor

GitHubContentDownloader({
  1. MultiSpinner? spinner,
  2. GitHubApiClient? apiClient,
  3. FileSystemHelper? fileSystem,
  4. String? githubToken,
})

Creates a new GitHubContentDownloader instance.

All parameters are optional and will be initialized with default values if not provided.

  • spinner: Optional spinner for progress visualization
  • apiClient: Optional GitHub API client
  • fileSystem: Optional file system helper
  • githubToken: Optional GitHub personal access token for authentication. If not provided, falls back to GITHUB_TOKEN environment variable.

Implementation

GitHubContentDownloader({
  MultiSpinner? spinner,
  GitHubApiClient? apiClient,
  FileSystemHelper? fileSystem,
  String? githubToken,
}) : _apiClient = apiClient ?? GitHubApiClient(token: githubToken),
     _fileSystem = fileSystem ?? FileSystemHelper(),
     _spinner = spinner ?? MultiSpinner();