cfengine / design-center

CFEngine community-contributed content
http://cfengine.com/
Other
80 stars 68 forks source link

"info" and "configure" commands are gone. how do I configure a sketch? #277

Open atsaloli opened 11 years ago

atsaloli commented 11 years ago

Hi. Looks like the Design Center Wiki is out of date.

The "info" and "configure" commands are gone from the current version of cf-sketch:

cf-sketch> [3527:3527:0501/091041:ERROR:omnibox_view_gtk.cc(431)] Not implemented reached in virtual void OmniboxViewGtk::ApplyCaretVisibility() info System::motd

Unknown command: info System::motd

cf-sketch>

cf-sketch> configure System::motd

Unknown command: configure System::motd

cf-sketch>

How do I configure a sketch?

tzz commented 11 years ago

I am working on the docs right now. I can't give you something in time for your class, sorry.

The cf-sketch shell is under development by @zzamboni and I don't have an ETA.

My best recommendation is to demonstrate with cd tools/test; make SKETCHNAME which will run cf-sketch in expert mode. Or you can look at the api or api2 targets which have fairly complete API interaction flows without cf-sketch in between. I apologize that I don't have a better solution for you.

nickanderson commented 11 years ago

@atsaloli I can put together a manual integration example using one of the sketches before tomorrow for you. Also another option is to use --expert mode instead of the interactive shell and pass it a json file for the parameters. I havent played much with DC since the update to the API, so I am playing a bit of catch up.

zzamboni commented 11 years ago

Sorry, the info and configure commands are not reimplemented yet for the new framework. You can activate a sketch using the "activate" command, which has the form:

activate Sketch::name /file/with/params.json activation|class|expression

This command will automatically define a new parameter set using the given JSON file, and a new environment using the given class expression.

For your class, you may want to demo the 3.4.0 version of cf-sketch, which you can get from the design-center repository checkout using the following commands:

cd design-center/
git checkout dc-3.4.0
cd tools/cf-sketch
./cf-sketch

Then you can use all the features of the previous version, it should all work well.

Best regards, and sorry for the brokenness at the moment.

pderuiter commented 11 years ago

Diego, is there a raw estimate when this will be ready.

Regards, Patrick