-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow pallets to define feature flags which other pallets can referen…
…ce in file imports (#297) * By default, make `[dev] plt ls-file` hide files in hidden dirs, e.g. `.git` * By default, make `[dev] plt ls-plt-file` hide files in hidden root-level dirs * Allow pallets to expose feature flags, and allow other pallets to reference them in file import groups * Update `CHANGELOG.md` for previous commit * Fix uninitialized set * Allow singular form of string slice cli flags for repo/pallet overrides in `dev plt` * Allow setting and showing deprecation notices for pallet features. * Fix some error messages & code comments I had forgotten to rename after copy-pasting * Add support for referencing features exposed by required pallets
- Loading branch information
Showing
20 changed files
with
731 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package plt | ||
|
||
import ( | ||
"github.com/urfave/cli/v2" | ||
|
||
fcli "github.com/PlanktoScope/forklift/internal/app/forklift/cli" | ||
) | ||
|
||
// ls-feat | ||
|
||
func lsFeatAction(c *cli.Context) error { | ||
plt, _, err := processFullBaseArgs(c, processingOptions{ | ||
requirePalletCache: true, | ||
enableOverrides: true, | ||
merge: true, | ||
}) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return fcli.PrintPalletFeatures(0, plt) | ||
} | ||
|
||
// show-feat | ||
|
||
func showFeatAction(c *cli.Context) error { | ||
plt, caches, err := processFullBaseArgs(c, processingOptions{ | ||
requirePalletCache: true, | ||
enableOverrides: true, | ||
merge: true, | ||
}) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return fcli.PrintFeatureInfo(0, plt, caches.p, c.Args().First()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.