mayo-qin / grunt Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently, in it's configuration file (gruntfile.yml
), grunt uses @
, <
and >
to signify parameter, input file, and output file respectively. Propose a change to use #
for parameter rather than @
. This change will reduce confusion with curl
commands.
For instance the new scheme would have:
services:
- endPoint: echo
commandLine: ["echo", "#Message"]
description: print a message
defaults:
Message: "Hi From Grunt"
- endPoint: sleep
commandLine: ["sleep", "#seconds"]
description: Sleep for a while
defaults:
seconds: 300
- endPoint: copy
commandLine: ["cp", "<input", ">output"]
description: copy a file
It makes a better UX to go to the job status page when submitting a job.
The commands might delete all the images in the users pc. We have to re-write them to be more specific.
Documentation on passing an email address to grunt for notification is missing. An example curl command would be:
curl -X POST --form seconds=5000 --form [email protected] 192.168.99.100:9901/rest/service/sleep
In addition to the uuid
of a Job, return grunt's HOST and PORT back in the status endpoint for a given Job.
Many APIs require a directory of image files, DICOM for instance. Add options to upload zip files that will be expanded as directories, processed and downloaded.
The REST API returns individual files as requested. Add an option to zip the entire working directory and return. Should stream the zip rather than cache.
Can you add a REST endpoint for stopping the running instance of grunt. I know I can stop it via docker
command, but it would be great if the instance can stop via API call. Or is it already supported I just miss it?
output
on job page to be download output as zip
Have the job status page refresh, especially the log.
Slicer has a well defined XML format to describe command line modules. Allow grunt to expose any Slicer CLI module as an endpoint. The YML file ought to have a new section.
services:
- endPoint: copy
commandLine: ["cp", "<input", ">output"]
description: copy a file
# Use Slicer CLI modules. Will populate the command line by parsing the XML output from
# ./MedianImageFilter --xml
cli:
- endPoint: median
executable: ./MedianImageFilter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.