Skip to content

Commit 97fb648

Browse files
committed
modify hello command
1 parent f3e4269 commit 97fb648

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

cmd/hello.go renamed to cmd/sandbox/hello.go

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1919
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2020
THE SOFTWARE.
2121
*/
22-
package cmd
22+
package sandbox
2323

2424
import (
2525
"fmt"
@@ -30,15 +30,10 @@ import (
3030
// helloCmd represents the hello command
3131
var helloCmd = &cobra.Command{
3232
Use: "hello",
33-
Short: "A brief description of your command",
34-
Long: `A longer description that spans multiple lines and likely contains examples
35-
and usage of using your command. For example:
36-
37-
Cobra is a CLI library for Go that empowers applications.
38-
This application is a tool to generate the needed files
39-
to quickly create a Cobra application.`,
33+
Short: "SandBox Hello Command",
34+
Long: `This is a sandbox command.`,
4035
Run: func(cmd *cobra.Command, args []string) {
41-
fmt.Println("hello called")
36+
fmt.Println("sandbox hello called")
4237
},
4338
}
4439

0 commit comments

Comments
 (0)