Skip to content

Commit

Permalink
SNOW-1758715 Convert app package deploy and validate to instance meth…
Browse files Browse the repository at this point in the history
…ods (#1782)

Updates `ApplicationPackageEntity` to make deploy and validation classmethods into instance methods, greatly simplifying the parameters being passed around.
  • Loading branch information
sfc-gh-fcampbell authored Oct 23, 2024
1 parent 489eac0 commit b9c0c57
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 256 deletions.
6 changes: 5 additions & 1 deletion src/snowflake/cli/_plugins/nativeapp/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ def app_validate(
package_id = options["package_entity_id"]
package = ws.get_entity(package_id)
if cli_context.output_format == OutputFormat.JSON:
return ObjectResult(package.get_validation_result(use_scratch_stage=True))
return ObjectResult(
package.get_validation_result(
use_scratch_stage=True, interactive=False, force=True
)
)

ws.perform_action(
package_id,
Expand Down
Loading

0 comments on commit b9c0c57

Please sign in to comment.