survey

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskAlias

func AskAlias(section msftgraph.Section, aliaslist *[]msftgraph.Alias) (string, error)

Promps the user to get confirmation on creating alias to given notebook&section combination. Returns the answer and the error if any Ask alias to make it easy to create a note within the section

func AskForgottenTitle

func AskForgottenTitle() (string, error)

Asks title if the user is about to create an untitled note with the command "nnote new <input-file>" (without the -title flag.)

func AskNoteContent

func AskNoteContent() (string, error)

func AskSetupAccount

func AskSetupAccount() (bool, error)

In case there's no account have been set yet, prompt the user to ask whether create one at that moment.

func AskTitle

func AskTitle() (string, error)

Ask title when creating the note without any flags.

Types

type AppOptions

type AppOptions = config.AppOptions

Friendly names

type NotePage

type NotePage = msftgraph.NotePage

func AskPage

func AskPage(plist []msftgraph.NotePage) (NotePage, error)

Prompts the user to select a onenote page

type Notebook

type Notebook = msftgraph.Notebook

func AskNotebook

func AskNotebook(nlist []Notebook) (Notebook, error)

Ask for the notebook to save the note. TODO: Add error handling and output if an error occured.

type NotebookName

type NotebookName = msftgraph.NotebookName

type Section

type Section = msftgraph.Section

func AskSection

func AskSection(n Notebook, slist []Section) (Section, error)

Ask for the section in which the note(onenote page) will be created.

type SectionName

type SectionName = msftgraph.SectionName

Jump to

Keyboard shortcuts

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