repository

package
v0.0.0-...-d0dead0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 12 Imported by: 0

README

CodeBaseManager/cli - Repository

The goal of this module is provide helper regarding the organization of the repository (as well as project).

Overview

This section will give a brief overview of each command's capabilities. For more informations, please see [] ⚠ TODO: add link to details

Create

The goal of create is to quickly begin a project based on a template, such as:

    cbm repository create <github link>

⚠ TODO: replace 'github link' with a real exemple ⚠

⚠ Currently only supports github repositories

If the repository contains a .cbm/repository.toml file, additional steps to further initialize the repository based on the given configuration will occur.

For more details see [] ⚠ TODO: add link to detailed section

Predicted
[ ] :warning: TODO: adds repo to local API
[ ] `--path` option to tell where to clone
[ ] support for more VCS
Todos

todos is inspired by JetBrains' TODOs. Here's a quick exemple:

    cbm repository todos

This will display all todos present in the working directory recursively, giving information about the files & lines where each todo is located as well as content.

⚠ TODO: add screens

Predicted
[ ] :warning: TODO: Save todos in local API
[ ] :warning: TODO: provide way to handle todos directly via cli (interaction with local API)

Details

Create
Todos

Documentation

Index

Constants

View Source
const (
	GitDir = ".git"
)

Variables

This section is empty.

Functions

func CheckGit

func CheckGit(path string) bool

func CreateRepository

func CreateRepository(args []string)

func DisplayTodos

func DisplayTodos(ctxDepth int)

func WatchPath

func WatchPath(path string)

func WatchRepository

func WatchRepository(args []string)

Types

type Todos

type Todos map[string][]todoInfos

func NewTodos

func NewTodos() (Todos, error)

func (Todos) PrintBasic

func (t Todos) PrintBasic()

func (Todos) PrintWithCtx

func (t Todos) PrintWithCtx(depth int)

Jump to

Keyboard shortcuts

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