@@ -8,6 +8,11 @@ import (
88 "github.com/tursodatabase/turso-cli/internal/turso"
99)
1010
11+ func showAttachDeprecationNotice () {
12+ fmt .Println (internal .Warn ("Notice: Database ATTACH is deprecated." ))
13+ fmt .Println (internal .Warn ("For more information, visit: https://tur.so/attach-deprecated\n " ))
14+ }
15+
1116func init () {
1217 dbConfigCmd .AddCommand (dbAttachCmd )
1318 dbAttachCmd .AddCommand (dbEnableAttachCmd )
@@ -27,6 +32,7 @@ var dbEnableAttachCmd = &cobra.Command{
2732 Args : cobra .ExactArgs (1 ),
2833 ValidArgsFunction : dbNameArg ,
2934 RunE : func (cmd * cobra.Command , args []string ) error {
35+ showAttachDeprecationNotice ()
3036 cmd .SilenceUsage = true
3137 return updateAttachStatus (args [0 ], true )
3238 },
@@ -38,6 +44,7 @@ var dbDisableAttachCmd = &cobra.Command{
3844 Args : cobra .ExactArgs (1 ),
3945 ValidArgsFunction : dbNameArg ,
4046 RunE : func (cmd * cobra.Command , args []string ) error {
47+ showAttachDeprecationNotice ()
4148 cmd .SilenceUsage = true
4249 return updateAttachStatus (args [0 ], false )
4350 },
@@ -49,6 +56,7 @@ var dbShowAttachStatusCmd = &cobra.Command{
4956 Args : cobra .ExactArgs (1 ),
5057 ValidArgsFunction : dbNameArg ,
5158 RunE : func (cmd * cobra.Command , args []string ) error {
59+ showAttachDeprecationNotice ()
5260 cmd .SilenceUsage = true
5361 client , err := authedTursoClient ()
5462 if err != nil {
0 commit comments