You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticsummary='Run a function locally for testing.'
14
15
15
16
staticdescriptionWithMarkdown=`Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).`
`Using export '${functionExport}'. Use the --export flag or an interactive terminal to select a different export.`,
70
-
)
71
-
}
72
-
}else{
73
-
outputDebug(
74
-
`No targeting information found. Using the default export '${functionExport}'. Use the --export flag or an interactive terminal to select a different export.`,
75
-
)
76
-
}
50
+
if(flags.export!==undefined){
51
+
outputDebug(`Using export ${flags.export} from the --export flag.`)
`Using export '${functionExport}'. Use the --export flag or an interactive terminal to select a different export.`,
70
+
)
71
+
}
72
+
}else{
73
+
outputDebug(
74
+
`No targeting information found. Using the default export '${functionExport}'. Use the --export flag or an interactive terminal to select a different export.`,
staticsummary='Generate GraphQL types for a JavaScript function.'
10
11
11
12
staticdescriptionWithMarkdown=`Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function written in JavaScript.`
0 commit comments