Skip to content

Conversation

gapra-msft
Copy link
Member

@gapra-msft gapra-msft commented Sep 2, 2025

Sorry in advance for how large this PR is.

This PR does two things

  1. Consolidate error handling. It no longer assumes that we have a global LCM that can handle error handling for us. Each job will pass its own Error Handler (which is the glcm for now)
  2. Move LCM to cmd folder. This is really an AzCopy CLI implementation, so it belongs in cmd.

common.NewAzError(common.EAzError.LoginCredMissing(), "No SAS token or OAuth token is present and the resource is not public")
if public {
credType = common.ECredentialType.Anonymous()
public = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are already inside 'if public', the variable is guaranteed to be true.
Reassigning public = true here isnt redundant?

@@ -0,0 +1,732 @@
package cmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing license header

closeFunc func() // used to close logs before exiting
waitForUserResponse chan bool
msgHandlerChannel chan *common.LCMMsg
OutputVerbosityType common.OutputVerbosity
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this local variable? As we have SetOutputVerbosity() API exposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants