This repository contains packages that are used within the scribe framework.
Methods and functions conform to a standard layout.
That is: functions/method returns and method receiver structures follow a similar structure.
The intent is to make everything consistent and therefore easy to understand.
The entire codebase has this structure embedded throughout. Complex structures will always contain this structure and may or may not reference child structures with this included as well.
The ux package contains all the critical and important UX interfacing methods/functions and can return errors, warnings, ok and debug states. As well as handling variable return types via a simple interface method, keeping track of state changes and providing console colouring based on states.
It's intent is to be simple and functional.
Names starting with:
Get
- Will return a structure/variable that you expect to see. Example:loadGit.GetRepo
will return a Git repository structure.Is
- Will return a boolean... Always.New
- Always instantiates and initializes a structure. This may, or may not call furtherNew
methods.Tool
- Is always a function name and never a method. Any functions with this prefix will have theTool
prefix removed, and the result will be available to the Scribe template framework.
Add file mime type detection to toolPath
Add in VFSGEN support
Add better type handling within ux.State