lib/branch/name/subcommands/config.rb in branch-name-3.10.2 vs lib/branch/name/subcommands/config.rb in branch-name-3.10.3
- old
+ new
@@ -16,19 +16,26 @@
include TaskDefaultable
desc 'info', 'Displays information about this gem configuration'
long_desc <<-LONG_DESC
NAME
- \x5
+
`branch-name config info` -- Displays information about this gem configuration.
SYNOPSIS
- \x5
+
branch-name config info
LONG_DESC
def info
print_global_config_file
say ''
+
+ if global_folder?
+ say 'NOTE: You are in your global folder. ' \
+ 'Local and global configurations are the same.'.colorize(:yellow)
+ return
+ end
+
print_local_config_file
end
desc 'init SUBCOMMAND', 'Sets up config files for this gem'
subcommand :init, Branch::Name::Subcommands::Init