Comments (3)
Steps:
-
move the directive file from /builder into subo/subo/util because we are expanding score and use
-
Read in and parse (deserialize) the Directive.yml file (subo already does this)
-
Construct the new handler using the values provided by the user with good defaults otherwise
-
Append the new handler to the currently list of handlers
-
Write out (serialize) the Directive.yml file (subo already does this)
from subo.
Notes: Recreating the directive struct however, with my new headers appended.
Directive file already exists in subo.
Steps:
Unmarshall
Create Handler
Append Handler to directive file
Re-Marshall entire directive
Q: What does marshaling mean and do?
A: Marshaling = converting convert a Golang Struct into Byte data and "unmarshaling" does the exact opposite - takes byte data and converts it into a struct.
from subo.
To test:
Pull atmo's latest changes
cd into the example project, run subo
cd to subo
run make subo
in subo folder
cd to target directory
run subo create handler /:resource
to create a handler in that directory
from subo.
Related Issues (20)
- Subo should not dump `compute deploy --local` artifacts to `$(pwd)`
- Improve subo-generated SCN manifest
- Rename SCC -> SCN everywhere
- Clarify FQFN term when creating (first?) function
- Deployment wizard
- Remove version number from release artifact names
- Subo should support systems with docker compose (v2) HOT 8
- Editor proxy fails to bind to HTTP port on Linux
- Convert `create handler` into `create workflow`
- Add cargo check to rust tool chain
- Provide instructions for upgrading Subo
- Expand option selection instruction in the REPL HOT 1
- Error: 🚫 failed to ExecTmplDir: template missing HOT 1
- Remove Atmo mentions
- feat(Builder): Build for context api
- Remove `subo dev`
- Remove subo's references to `compute`
- techdebt: replace logger with rs/zerolog HOT 1
- subo create module --lang should be renamed to --template
- SE2 REPL should prompt for template selection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subo.