Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First steps to operator after #561

Merged
merged 5 commits into from
Dec 30, 2023
Merged

First steps to operator after #561

merged 5 commits into from
Dec 30, 2023

Conversation

StoneCypher
Copy link
Owner

want to see it spin in node? do this

const jssm = require('.');
const sm   = jssm.sm;

const rgb = sm`red after 1s -> green after 4s -> blue after 5s -> red;`;

rgb.hook_entry('red',   () => { console.log(`entered red: ${  new Date().toLocaleString()}`); return true; });
rgb.hook_entry('green', () => { console.log(`entered green: ${new Date().toLocaleString()}`); return true; });
rgb.hook_entry('blue',  () => { console.log(`entered blue: ${ new Date().toLocaleString()}`); return true; });

won't merge until tests are written, but too tired to write tests rn

@StoneCypher
Copy link
Owner Author

image

@coveralls
Copy link

coveralls commented Dec 29, 2023

Coverage Status

coverage: 100.0%. remained the same
when pulling 0faf24b on FirstStepsToOperatorAfter
into b2e0742 on main.

@StoneCypher StoneCypher merged commit 85b6857 into main Dec 30, 2023
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants