[NPMCLI-8] Refactor syntax to new names and use of params Created: 14/Apr/16  Updated: 22/Aug/16  Resolved: 23/May/16

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.1

Type: Task Priority: Neutral
Reporter: Jan Haderka Assignee: Unassigned
Resolution: Outdated Votes: 0
Labels: npm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

as outlined in the concept https://wiki.magnolia-cms.com/display/DEV/NPM+CLI



 Comments   
Comment by Tomáš Gregovský [ 14/Apr/16 ]

syntax working right now:
create-light-module (without parameters)
create-page <pageName>
create-component <componentName>

Comment by Tomáš Gregovský [ 16/Apr/16 ]

improved add-availability (same for create-component):

full command should looks like:
$ add-availability sampleModule:components/text --available sampleModule:pages/home@main

alternatively instead of '--available' can use only '-av', same for '--autogeneration' and '-ag', e.g.:
$ add-availability sampleModule:components/text -av sampleModule:pages/home@main

both IDs can be used without light module name, then current light module (one set in package json) will be used, e.g.:
$ add-availability components/text -av pages/home@main

@<areaName> is optional and if none is entered, then 'main' is used as default, e.g.:
$ add-availability components/text -av pages/home

same can be used for create-component, e.g.:
$ create-component text -av pages/home

for 'add-availability' order of arguments doesn't matter, only page/component where availability has to be added has be after '--availability', e.g.:
$ add-availability -av pages/home components/text

Comment by Federico Grilli [ 23/May/16 ]

Done with NPMCLI-10

Generated at Mon Feb 12 04:45:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.