comment

package module
v0.0.0-...-5c8d79d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 11 Imported by: 0

README

🌳 Go Bonzai Comment Filter Branch

Comment tool.

Installation

This comment command can be installed as a standalone program or composed into a Bonzai command tree.

Standalone

go install github.com/chriswifn/comment/cmd/comment@latest

Composed

package z

import (
    Z "github.com/rwxrob/bonzai/z"
    "github.com/chriswifn/comment"
)

var Cmd = &Z.Cmd{
    Name: `z`,
    Commands: []*Z.Cmd{help.Cmd, comment.Cmd},
}

Tab Completion

To activate bash completion just use the complete -C option from your .bashrc or command line. There is no messy sourcing required. All the completion is done by the program itself.

complete -C comment comment

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &Z.Cmd{
	Name:      `comment`,
	Aliases:   []string{`com`},
	Usage:     `[help|PATH]`,
	Copyright: `Copyright 2023 Christian Hageloch`,
	Version:   `v0.1.0`,
	License:   `MIT`,
	Source:    `git@github.com:chriswifn/comment.git`,
	Issues:    `github.com/chriswifn/comment/issues`,
	Commands:  []*Z.Cmd{help.Cmd, vars.Cmd, conf.Cmd, commentCmd, uncommentCmd, initCmd, htitleCmd},
}
View Source
var (
	LineExp = regexp.MustCompile(`(.*\S.*)`)
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
comment command

Jump to

Keyboard shortcuts

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