From d1ab01143ca434e7a09a4adaf56c0fcdff5d2754 Mon Sep 17 00:00:00 2001 From: Consolethinks Date: Wed, 28 Aug 2024 14:30:52 +0200 Subject: [PATCH] fix typos --- cmd/commands/datasetIngestor.go | 4 ++-- cmd/commands/globusCheckTransfer.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/commands/datasetIngestor.go b/cmd/commands/datasetIngestor.go index dc0438a..2f94445 100644 --- a/cmd/commands/datasetIngestor.go +++ b/cmd/commands/datasetIngestor.go @@ -115,7 +115,7 @@ For Windows you need instead to specify -user username:password on the command l } if autoarchiveFlag { - log.Println("Cannot autoarchive when transfering via Globus due to the transfer happening asynchronously. Use the \"globusCheckTransfer\" command to archive them") + log.Println("Cannot autoarchive when transferring via Globus due to the transfer happening asynchronously. Use the \"globusCheckTransfer\" command to archive them") autoarchiveFlag = false } } @@ -547,7 +547,7 @@ func init() { datasetIngestorCmd.Flags().Bool("noninteractive", false, "If set no questions will be asked and the default settings for all undefined flags will be assumed") datasetIngestorCmd.Flags().Bool("copy", false, "Defines if files should be copied from your local system to a central server before ingest (i.e. your data is not centrally available and therefore needs to be copied ='decentral' case). copyFlag has higher priority than nocopyFlag. If neither flag is defined the tool will try to make the best guess.") datasetIngestorCmd.Flags().Bool("nocopy", false, "Defines if files should *not* be copied from your local system to a central server before ingest (i.e. your data is centrally available and therefore does not need to be copied ='central' case).") - datasetIngestorCmd.Flags().String("transfer-type", "ssh", "Selects the transfer type to be used for transfering files. Available options: \"ssh\", \"globus\"") + datasetIngestorCmd.Flags().String("transfer-type", "ssh", "Selects the transfer type to be used for transferring files. Available options: \"ssh\", \"globus\"") datasetIngestorCmd.Flags().Int("tapecopies", 0, "Number of tapecopies to be used for archiving") datasetIngestorCmd.Flags().Bool("autoarchive", false, "Option to create archive job automatically after ingestion") datasetIngestorCmd.Flags().String("linkfiles", "keepInternalOnly", "Define what to do with symbolic links: (keep|delete|keepInternalOnly)") diff --git a/cmd/commands/globusCheckTransfer.go b/cmd/commands/globusCheckTransfer.go index d6d41dc..9bae5bd 100644 --- a/cmd/commands/globusCheckTransfer.go +++ b/cmd/commands/globusCheckTransfer.go @@ -151,7 +151,7 @@ For further help see "` + MANUAL + `"`, } fmt.Printf("Task status: \n=====\n%v\n=====\n", task) - // if marking as archivable is requested and the transfer has succeded + // if marking as archivable is requested and the transfer has succeeded if markArchivable && task.Status == "SUCCEEDED" { if task.SourceBasePath == nil { log.Printf("Can't get source base path for task \"%s\". It will not be marked as archivable, but can probably be archived.\n", taskId) @@ -175,7 +175,7 @@ For further help see "` + MANUAL + `"`, // error handling and exceptions if err != nil { - log.Printf("WARNING - an error has occured when querying the sourcefolder \"%s\" of task id \"%s\": %v\n", sourceFolder, taskId, err) + log.Printf("WARNING - an error has occurred when querying the sourcefolder \"%s\" of task id \"%s\": %v\n", sourceFolder, taskId, err) log.Printf("Can't set %s task's dataset to archivable.\n", taskId) continue } @@ -209,7 +209,7 @@ For further help see "` + MANUAL + `"`, log.Printf("%s dataset is being marked as archivable...\n", result.Pid) err := datasetIngestor.MarkFilesReady(client, APIServer, result.Pid, user) if err != nil { - log.Printf("WARNING - error occured while trying to mark files ready for dataset with PID \"%s\": %v\n", result.Pid, err) + log.Printf("WARNING - error occurred while trying to mark files ready for dataset with PID \"%s\": %v\n", result.Pid, err) log.Printf("%s dataset was (likely) not marked archivable.\n", result.Pid) continue }