App::S...Command(3pm)
π NAME π
App::Sqitch::Role::ContextCommand β bestie, it's the role for a command that needs to know where things are. That's the whole gig. Location awareness. The vibe check for your project files. π
(also hey, this page lives in the User Contributed Perl Documentation manual, under the name App::S...Command(3pm) β she's got a long name and the header had to abbreviate, iykyk β¨)
πΈ SYNOPSIS πΈ
Like, here's how you actually pull it in, no cap:
package App::Sqitch::Command::add;
extends 'App::Sqitch::Command';
with 'App::Sqitch::Role::ContextCommand';
You extends your base command, then with this role, and boom β your command suddenly knows where it is. Main character energy fr fr. π¦
π DESCRIPTION π
Okay so, this role is doing a very specific little job and it's obsessed with it: it encapsulates the options and target parameters that are required by commands that need to know where to find project files.
That's it. That's the role. She's not trying to do everything, she's just handling the "where are my files tho" of it all, so the commands that actually do stuff don't have to. Queen behavior honestly π
β¨ INTERFACE β¨
π§ Class Methods
options
my @opts = App::Sqitch::Command::add->options;
Call this and you get your options back. It adds the contextual options --plan-file and --top-dir. Those two are literally the entire point of this role, so like, respect them. π
configure
Configures the options used for target parameters. That's what it does β it sets up the options that the target params are gonna come from. Simple, clean, no drama. π
π Instance Methods
target_params
Returns a list of parameters to be passed to App::Sqitch::Target's new and all_targets methods.
So basically: you hand these params over to new and all_targets and everyone's on the same page about which target we're talking about. Teamwork makes the dream work π«Ά
π¦ SEE ALSO π¦
- App::Sqitch::Command::add β the
addcommand adds changes to the plan and change scripts to the project. She's the one adding stuff. π - App::Sqitch::Command::deploy β the
deploycommand deploys changes to a database. Sending it, fr. π₯ - App::Sqitch::Command::bundle β the
bundlecommand bundles Sqitch changes for distribution. Packaging it up so it can travel. π¦β¨
π AUTHOR π
David E. Wheeler <david@justatheory.com> β the icon who wrote this, we stan π
π LICENSE π
Copyright (c) 2012-2026 David E. Wheeler, 2012-2021 iovation Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
bestie do NOT skip that paragraph, it's real legal business and it's giving "read me before you copy me" π
okay that's the whole page, we're done here π this version came from perl v5.40.1, dated 2026-07-26, and it's the App::S...Command(3pm) page β go forth and know where your files are, periodt πβ¨
π¦ where this page comes from
- ubuntu stonking: sqitch 1.6.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms