directify-cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/organizers.js +10 -2
package/package.json
CHANGED
|
@@ -56,9 +56,11 @@ organizers
|
|
|
56
56
|
.description('Create a new organizer')
|
|
57
57
|
.requiredOption('--name <name>', 'Organizer name')
|
|
58
58
|
.option('--slug <slug>', 'URL slug (auto-generated from name if not provided)')
|
|
59
|
-
.option('--description <text>', '
|
|
59
|
+
.option('--description <text>', 'Short description')
|
|
60
|
+
.option('--content <text>', 'Long-form content (markdown supported)')
|
|
60
61
|
.option('--email <email>', 'Contact email')
|
|
61
62
|
.option('--phone <phone>', 'Contact phone')
|
|
63
|
+
.option('--address <address>', 'Physical address')
|
|
62
64
|
.option('--website <url>', 'Website URL')
|
|
63
65
|
.option('--user-id <id>', 'Assign to a user (submitter) by ID')
|
|
64
66
|
.option('--inactive', 'Create as inactive')
|
|
@@ -72,8 +74,10 @@ organizers
|
|
|
72
74
|
name: opts.name,
|
|
73
75
|
...(opts.slug && { slug: opts.slug }),
|
|
74
76
|
...(opts.description && { description: opts.description }),
|
|
77
|
+
...(opts.content && { content: opts.content }),
|
|
75
78
|
...(opts.email && { email: opts.email }),
|
|
76
79
|
...(opts.phone && { phone: opts.phone }),
|
|
80
|
+
...(opts.address && { address: opts.address }),
|
|
77
81
|
...(opts.website && { website_url: opts.website }),
|
|
78
82
|
...(opts.userId && { user_id: Number(opts.userId) }),
|
|
79
83
|
is_active: !opts.inactive,
|
|
@@ -94,9 +98,11 @@ organizers
|
|
|
94
98
|
.description('Update an organizer')
|
|
95
99
|
.option('--name <name>', 'Organizer name')
|
|
96
100
|
.option('--slug <slug>', 'URL slug')
|
|
97
|
-
.option('--description <text>', '
|
|
101
|
+
.option('--description <text>', 'Short description')
|
|
102
|
+
.option('--content <text>', 'Long-form content (markdown supported)')
|
|
98
103
|
.option('--email <email>', 'Contact email')
|
|
99
104
|
.option('--phone <phone>', 'Contact phone')
|
|
105
|
+
.option('--address <address>', 'Physical address')
|
|
100
106
|
.option('--website <url>', 'Website URL')
|
|
101
107
|
.option('--user-id <id>', 'Assign to a user (submitter) by ID')
|
|
102
108
|
.option('--active <bool>', 'Active status (true/false)')
|
|
@@ -110,8 +116,10 @@ organizers
|
|
|
110
116
|
if (opts.name) body.name = opts.name;
|
|
111
117
|
if (opts.slug) body.slug = opts.slug;
|
|
112
118
|
if (opts.description) body.description = opts.description;
|
|
119
|
+
if (opts.content) body.content = opts.content;
|
|
113
120
|
if (opts.email) body.email = opts.email;
|
|
114
121
|
if (opts.phone) body.phone = opts.phone;
|
|
122
|
+
if (opts.address) body.address = opts.address;
|
|
115
123
|
if (opts.website) body.website_url = opts.website;
|
|
116
124
|
if (opts.userId) body.user_id = Number(opts.userId);
|
|
117
125
|
if (opts.active !== undefined) body.is_active = opts.active === 'true';
|