Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagGitHubToken = "github-token" FlagNotionToken = "notion-token" FlagNotionDatabaseID = "notion-database-id" )
Variables ¶
View Source
var ( ErrGitHubTokenRequired = errors.New("github-token is required") ErrNotionTokenRequired = errors.New("notion-token is required") ErrNotionDatabaseIDRequired = errors.New("notion-database-id is required") )
View Source
var ErrSyncerInitializerRequired = errors.New("syncer initializer is required")
Functions ¶
func NewCommand ¶
func NewCommand(initializerFn SyncerInitializer) *cobra.Command
NewCommand returns a new cobra command that allows you to sync your github stars with a notion database
Types ¶
type SyncerInitializer ¶
SyncerInitializer function provides a way to initialize the syncer with the given options This abstraction is useful to allow mocking the syncer in tests
Click to show internal directories.
Click to hide internal directories.