editpack

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Overview

Package editpack builds a console interface to edit applets definition info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PacksExternal

func PacksExternal(log cdtype.Logger, dir string) (packages.AppletPackages, error)

PacksExternal lists applets packages in the given dir.

func Start

func Start(log cdtype.Logger, packs packages.AppletPackages) error

Start starts the edit applet console GUI.

Types

type Editor

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

Editor defines the edit info console GUI.

func New

func New(log cdtype.Logger, packs packages.AppletPackages, appwidth, fieldswidth int) *Editor

New creates a new edit info console GUI.

func (*Editor) SetField

func (ed *Editor) SetField(txtFields []string, id int) int

SetField sets the current field number.

func (*Editor) SetPack

func (ed *Editor) SetPack(appnames []string, appID int) int

SetPack sets the current package number.

Jump to

Keyboard shortcuts

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