commands

package
v0.0.0-...-0b12dc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: BSD-3-Clause Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package commands is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMarkdownFileFromRepo

func ReadMarkdownFileFromRepo(ctx context.Context, client GitHubClient, owner, repo, path string) (string, error)

Types

type GitHubClient

type GitHubClient interface {
	GetContents(ctx context.Context, owner, repo, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
}

type MockGitHubClient

type MockGitHubClient struct {
	// contains filtered or unexported fields
}

MockGitHubClient is a mock of GitHubClient interface.

func NewMockGitHubClient

func NewMockGitHubClient(ctrl *gomock.Controller) *MockGitHubClient

NewMockGitHubClient creates a new mock instance.

func (*MockGitHubClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitHubClient) GetContents

GetContents mocks base method.

type MockGitHubClientMockRecorder

type MockGitHubClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockGitHubClientMockRecorder is the mock recorder for MockGitHubClient.

func (*MockGitHubClientMockRecorder) GetContents

func (mr *MockGitHubClientMockRecorder) GetContents(ctx, owner, repo, path, opt interface{}) *gomock.Call

GetContents indicates an expected call of GetContents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL