Rename the command

This commit is contained in:
rubyist 2015-01-30 10:41:03 -05:00
parent cc6d5a5ae3
commit c1afb37a4e
6 changed files with 10 additions and 10 deletions

@ -28,7 +28,7 @@ func initCommand(cmd *cobra.Command, args []string) {
initHooksCommand(cmd, args)
}
Print("git media initialized")
Print("git hawser initialized")
}
func initHooksCommand(cmd *cobra.Command, args []string) {

@ -20,8 +20,8 @@ var (
ErrorWriter = io.MultiWriter(os.Stderr, ErrorBuffer)
OutputWriter = io.MultiWriter(os.Stdout, ErrorBuffer)
RootCmd = &cobra.Command{
Use: "git-media",
Short: "Git Media provides large file support to Git.",
Use: "git-hawser",
Short: "Hawser provides large file support to Git.",
Run: func(cmd *cobra.Command, args []string) {
versionCommand(cmd, args)
cmd.Usage()

@ -149,7 +149,7 @@ type TestCommand struct {
}
func (c *TestCommand) Run(path string) {
fmt.Println("$ git media", strings.Join(c.Args, " "))
fmt.Println("$ git hawser", strings.Join(c.Args, " "))
for _, cb := range c.BeforeCallbacks {
cb()
@ -231,7 +231,7 @@ func init() {
}
Root = filepath.Join(wd, "..")
Bin = filepath.Join(Root, "bin", "git-media")
Bin = filepath.Join(Root, "bin", "git-hawser")
TempDir = filepath.Join(os.TempDir(), "git-media-tests")
env := os.Environ()

@ -17,7 +17,7 @@ func TestInit(t *testing.T) {
repo.AddPath(repo.Path, "subdir")
cmd := repo.Command("init")
cmd.Output = "git media initialized"
cmd.Output = "git hawser initialized"
prePushHookFile := filepath.Join(repo.Path, ".git", "hooks", "pre-push")
@ -29,8 +29,8 @@ func TestInit(t *testing.T) {
cmd.After(func() {
// assert media filter config
configs := GlobalGitConfig(t)
AssertIncludeString(t, "filter.media.clean=git media clean %f", configs)
AssertIncludeString(t, "filter.media.smudge=git media smudge %f", configs)
AssertIncludeString(t, "filter.media.clean=git hawser clean %f", configs)
AssertIncludeString(t, "filter.media.smudge=git hawser smudge %f", configs)
AssertIncludeString(t, "filter.media.required=true", configs)
found := 0
for _, line := range configs {
@ -47,7 +47,7 @@ func TestInit(t *testing.T) {
})
cmd = repo.Command("init")
cmd.Output = "Hook already exists: pre-push\ngit media initialized"
cmd.Output = "Hook already exists: pre-push\ngit hawser initialized"
customHook := []byte("echo 'yo'")
cmd.Before(func() {

@ -56,7 +56,7 @@ func InstallFilters() error {
func setFilter(filterName string) error {
key := fmt.Sprintf("filter.media.%s", filterName)
value := fmt.Sprintf("git media %s %%f", filterName)
value := fmt.Sprintf("git hawser %s %%f", filterName)
existing := git.Config.Find(key)
if shouldReset(existing) {