repository

package
v0.0.0-...-1d0deca Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 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 clone a project based on a template, such as:

    cbm repository create <github link>

    Example:
    cbm repository create https://github.com/PoCInnovation/CodeBaseManager/

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

Predicted
[x] 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 the command to enter:

    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.

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

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