Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
package cmd
import (
// clearallCmd represents the clearall command
var clearallCmd = &cobra.Command{
Use: "clearall",
Short: "Clear all the bookmarks",
Long: `This command delete all of your added bookmarks. Be careful while using this command.`,
Run: func(cmd *cobra.Command, args []string) {
inputCmd := exec.Command("/bin/sh", "-c", "> ~/.bookmarks/bookmarks.txt")
inputCmd.Stdout = os.Stdout
inputCmd.Stderr = os.Stderr
func init() {