Skip to content

Cobraaaaa#84

Merged
technoweenie merged 20 commits intomasterfrom
cobraaaaa
Jul 24, 2014
Merged

Cobraaaaa#84
technoweenie merged 20 commits intomasterfrom
cobraaaaa

Conversation

@technoweenie
Copy link
Contributor

I've been wanting to play with cobra for awhile. It gives us posix compatible flag handling, and an automatic help command.

A lot of the files are part of the vendored libs. Skip all that noise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not crazy about having a command alias like this. I'd prefer path. Maybe cobra has an easy alias thing though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm OK with nuking paths

@technoweenie
Copy link
Contributor Author

This was easier than I thought. I hate to drop a big PR and LEAVE, so I'll let you decide to merge it or not.

@technoweenie
Copy link
Contributor Author

Breaking changes (before I forget):

  • posix compatible flags
  • git media logs show {file} instead of git media logs {file}
  • remove redundant paths command.

technoweenie added a commit that referenced this pull request Jul 24, 2014
@technoweenie technoweenie merged commit c128fe9 into master Jul 24, 2014
@technoweenie technoweenie deleted the cobraaaaa branch July 24, 2014 18:05
chrisd8088 added a commit to chrisd8088/git-lfs that referenced this pull request Feb 12, 2025
In PR git-lfs#68 the "commands" package was updated with several logging
functions such as Panic(), Print(), and Debug().  The last of these
only outputs a log message if the Debugging variable in the same
package is set to "true", which at the time was controlled by the
setupDebugging() function.  If the user supplied the --debug option
to a given Git LFS command, setupDebugging() function would set the
Debugging variable to "true", and any calls to Debug() would then
generate log messages.

However, the setupDebugging() function was removed, along with a
lot of the earlier command-line parsing and setup code, in PR git-lfs#84,
and replaced with the Cobra library from the spf13/cobra project.
Since then it has not been possible to set the Debugging variable
to a value other than "false", so the remaining references to the
Debug() function will never generate log messages.

We therefore remove the Debugging variable and the Debug() function,
and replace any calls to that function with ones to our standard
trace logging function.
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.

2 participants