mdme

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Unlicense Imports: 10 Imported by: 0

README

mdme (markdown me)

A simple cli tool to generate code and text blocks for viewing, sharing with people or with an LLM.

Installation

go install github.com/alafeefidev/mdme/cmd/mdme@latest

Usage

mdme <path> [flags]

Examples

  1. Get files from current directory with console output suppressed
mdme -s 
  1. Get files from provided directory with verbosity of logs set to debug
mdme /examples -v

Flags

  • -s, --suppress suppress console output, only copy to clipboard
  • -v, --verbose enable debug logging
  • -d, --depth max directories depth (0 = unlimited)
  • --max-files max number of files to process

Planned Features

  • Flags to overwrite default ignore list
  • To work on files too, now it only accepts directories
  • Print to an .md file
  • and more...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMsg

func ErrorMsg(err error) string

func FromFile

func FromFile(path string) *gignore.GitIgnore

func IsDir

func IsDir(path string) (bool, error)

func IsHomeDir added in v0.1.2

func IsHomeDir(absPath string) bool

func IsTextFile

func IsTextFile(path string) ([]byte, error)

func ToMD

func ToMD(files []File, root string) (string, error)

Types

type File

type File struct {
	Path    string
	Content []byte
}

func ListFiles

func ListFiles(root string, maxDepth, maxFiles int) ([]File, error)

type IgnoreConfig

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

func (*IgnoreConfig) Ignore

func (im *IgnoreConfig) Ignore(path, rel string, isDir bool) bool

Directories

Path Synopsis
cmd
mdme command

Jump to

Keyboard shortcuts

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