Comments (2)
bead command stata -b do main.do
bead save
bead develop NAME
bead input update
bead update
or
bead run
from bead.
I think entry_point
is not a good name, what about build_command
instead?
I was also thinking about the command line interface and implementation for using it (rebuilding beads):
bead build [--show] [BUILD COMMAND WITH ARGUMENTS]
Records or executes build commands
bead build make output
recordsmake output
as the command used for building the outputbead build
runs the previously recorded build commandbead build --show
shows the previously recorded build command
bead build --recursive [--dir BUILD-DIR]
Rebuilds the workspace, the inputs are updated, and loaded.
Something like
# rebuild inputs
for INPUT in workspace.inputs:
bead build --recursive --dir BUILD-DIR INPUT.bead_name
bead input update INPUT.name
# rebuild workspace
bead build
bead build [--recursive] [--dir BUILD-DIR] --package PACKAGE
Rebuilds PACKAGE and if required, all of its dependencies recursively.
a recursive build would work like this:
cd BUILD-DIR
if file PACKAGE exists:
# this package was already built
return
bead develop PACKAGE
cd PACKAGE
if recursive:
bead build --recursive --dir BUILD-DIR
else:
bead input update
bead build
bead save
cd ..
bead zap PACKAGE
# leave a sentinel behind to prevent repeated builds
touch PACKAGE
Notes:
- existing
BUILD-DIR/PACKAGE
will prevent buildingPACKAGE
BUILD-DIR
defaults toabspath('temp/build')
- all
bead build
-s andbead save
-s should be conditional for package builds (i.e. not a workspace initiated build): only if one of its dependencies have been updated
Open problem[s]:
- What to do with existing beads? Smart default (
make
) or fail? - What should happen when there is a failure rebuilding one of the dependencies (e.g. no build command recorded, or command exiting with error)?
from bead.
Related Issues (20)
- package not found by name HOT 1
- bead nuke fails on virtualenv directories
- if there is a symlink in the workspace `bead save` creates invalid bead HOT 1
- input add with wrong order of arguments and file-path - registers file-path as input
- beads with upper case characters are not found when searched by name
- `input update` on already up-to-date bead refreshes the input HOT 1
- files over 4GB are not stored in before 2013 python versions
- bead commands should also work in subfolders HOT 1
- Use parallel zip and unzip HOT 4
- .beadignore instead of temp/ folder HOT 1
- `bead input load` should create input folders HOT 2
- Remember originating box - for default to save back to
- bead develop silently overwrites existing local directory? HOT 1
- New version to release HOT 1
- bead input update <non-existent-input> error message HOT 1
- Uniform bead references
- bead save error message HOT 5
- Force loading of bead input HOT 1
- Permission error with `input update` HOT 1
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 bead.