Skip to content

Commit

Permalink
chore: simple warning to let the user know, they didn't deploy anythi…
Browse files Browse the repository at this point in the history
…ng. (#2167)

## Description

simple warning added:

```
  ✔  Deploy Zarf package confirmed

 WARNING  No components were deployed
  ✔  Zarf deployment complete
 ```

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x ] Other (security config, docs update, etc)

## Checklist before merging

- [x ] Test, docs, adr added or updated as needed
- [x ] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed

---------

Co-authored-by: Wayne Starr <[email protected]>
  • Loading branch information
bdw617 and Racer159 authored Nov 29, 2023
1 parent d9c7d58 commit 1578cf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pkg/packager/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (p *Packager) Deploy() (err error) {
if err != nil {
return fmt.Errorf("unable to deploy all components in this Zarf Package: %w", err)
}
if len(deployedComponents) == 0 {
message.Warn("No components were selected for deployment. Inspect the package to view the available components and select components interactively or by name with \"--components\"")
}

// Notify all the things about the successful deployment
message.Successf("Zarf deployment complete")
Expand Down

0 comments on commit 1578cf1

Please sign in to comment.