You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/node/create.go
+10-7
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,10 @@ var propertiesCreate []string
78
78
varfileNameCreatestring
79
79
varnodeCreateCmd=&cobra.Command{
80
80
Use: "create",
81
-
Short: "Create new Node",
81
+
Short: "Create new Node in ACS Repository",
82
+
Long: `Creates a new node as children of a parent node in the repository.
83
+
The node can be created setting only metadata (name, type, aspects and properties) or
84
+
a local file can be also specified to be associated as the content of the new node.`,
82
85
Run: func(command*cobra.Command, args []string) {
83
86
CreateNode(nodeId,
84
87
nodeNameCreate,
@@ -96,12 +99,12 @@ var nodeCreateCmd = &cobra.Command{
96
99
97
100
funcinit() {
98
101
nodeCmd.AddCommand(nodeCreateCmd)
99
-
nodeCreateCmd.Flags().StringVarP(&nodeId, "nodeId", "i", "", "Parent Node Id in Alfresco Repository. The node is created under this Parent Node. You can also use one of these well-known aliases: -my-, -shared-, -root-")
100
-
nodeCreateCmd.Flags().StringVarP(&relativePath, "relativePath", "r", "", "A path in Alfresco Repository relative to the nodeId.")
nodeCreateCmd.Flags().StringArrayVarP(&aspectsCreate, "aspects", "a", nil, "Complete aspect list to be set")
104
-
nodeCreateCmd.Flags().StringArrayVarP(&propertiesCreate, "properties", "p", nil, "Property=Value list containing properties to be updated")
102
+
nodeCreateCmd.Flags().StringVarP(&nodeId, "nodeId", "i", "", "Parent Node Id in Alfresco Repository (commonly a folder node). The node is created under this Parent Node. You can also use one of these well-known aliases: -my-, -shared-, -root-")
103
+
nodeCreateCmd.Flags().StringVarP(&relativePath, "relativePath", "r", "", "A path in Alfresco Repository relative to the nodeId for the Parent Node.")
104
+
nodeCreateCmd.Flags().StringVarP(&nodeNameCreate, "name", "n", "", "New Node Name")
105
+
nodeCreateCmd.Flags().StringVarP(&nodeTypeCreate, "type", "t", "", "New Node Type")
106
+
nodeCreateCmd.Flags().StringArrayVarP(&aspectsCreate, "aspects", "a", nil, "Complete aspect list to be set for the New Node")
107
+
nodeCreateCmd.Flags().StringArrayVarP(&propertiesCreate, "properties", "p", nil, "Property=Value list containing properties to be created for the New Node")
105
108
nodeCreateCmd.Flags().StringVarP(&fileNameCreate, "file", "f", "", "Filename to be uploaded (complete or local path)")
Copy file name to clipboardExpand all lines: cmd/node/download-folder.go
+4-2
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,9 @@ var folderNameDownload string
58
58
varwgDownload sync.WaitGroup
59
59
varnodeDownloadFolderCmd=&cobra.Command{
60
60
Use: "download-folder",
61
-
Short: "Download Alfresco Repository folder to local folder",
61
+
Short: "Download an Alfresco Repository folder to a local folder",
62
+
Long: `Folders and files nodes from the repository are retrieved recursively.
63
+
Only content is downloaded, while metadata is not available on the local download`,
62
64
Run: func(command*cobra.Command, args []string) {
63
65
64
66
log.Println(NodeUploadFolderCmdId,
@@ -83,6 +85,6 @@ func init() {
83
85
nodeCmd.AddCommand(nodeDownloadFolderCmd)
84
86
nodeDownloadFolderCmd.Flags().StringVarP(&nodeId, "nodeId", "i", "", "Node Id in Alfresco Repository to download to local folder. You can also use one of these well-known aliases: -my-, -shared-, -root-")
85
87
nodeDownloadFolderCmd.Flags().StringVarP(&relativePath, "relativePath", "r", "", "A path in Alfresco Repository relative to the nodeId.")
86
-
nodeDownloadFolderCmd.Flags().StringVarP(&folderNameDownload, "directory", "d", "", "Folder to download Alfresco content")
Copy file name to clipboardExpand all lines: cmd/node/update.go
+7-3
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ var properties []string
21
21
varfileNameUpdatestring
22
22
varnodeUpdateCmd=&cobra.Command{
23
23
Use: "update",
24
-
Short: "Update Node information",
24
+
Short: "Update Node information in the repository",
25
+
Long: `Updates an existing node in the repository.
26
+
The node can be updating setting only modified metadata (name, type and properties) but
27
+
to modify "aspects" the full list of "aspects" to be set to the node is required.
28
+
A local file can be also specified to be replace the content of the new node.`,
25
29
Run: func(command*cobra.Command, args []string) {
26
30
27
31
ifrelativePath!="" {
@@ -83,8 +87,8 @@ func init() {
83
87
nodeCmd.AddCommand(nodeUpdateCmd)
84
88
nodeUpdateCmd.Flags().StringVarP(&nodeId, "nodeId", "i", "", "Node Id in Alfresco Repository to be updated. You can also use one of these well-known aliases: -my-, -shared-, -root-")
85
89
nodeUpdateCmd.Flags().StringVarP(&relativePath, "relativePath", "r", "", "A path in Alfresco Repository relative to the nodeId.")
86
-
nodeUpdateCmd.Flags().StringVarP(&nodeName, "name", "n", "", "New Node Name")
87
-
nodeUpdateCmd.Flags().StringVarP(&nodeType, "type", "t", "", "New Node Type")
0 commit comments