App::VTide::Command::Save - Save configuration changes
This documentation refers to App::VTide::Command::Save version 1.0.1
vtide save [(--name|-n) files-name] file-or-glob (file-or-glob...) vtide save --record-env vtide save --diff-env vtide save --save-env vtide save [--help|--man] OPTIONS: -n --name[=]str Save the listed files or globs to the editor files list under this name (Default is the project name) -r --record-env Record the current environment (use before running commands like nvm, rvm and perlbrew) -d --diff-env Show the diff of the current environment and recorded environment -s --save-env Save the environment differences to .vtide.yml -v --verbose Show more verbose output. --help Show this help --man Show full documentation
This App::VTide command saves extra information to the .vtide.yml config file. There are two forms:
.vtide.yml
Saving files or globs to the editor/files list makes it easier to add new groups of files. The name of the groups is specified by the --name parameter.
--name
Saving environment variable changes so specific groups of environment variables can be set up each time a session is started. This is a multi step process where the current environment before changes are saved via --record=env then the changes are made (e.g. running perlbrew, nvm, rvm etc) and those changes can be viewed via --dif-env and recorded to the .vtide.yml file via --save-env. This creates a temporary file .current-env to store the environment variables when --record-env is run.
--record=env
nvm
rvm
--dif-env
--save-env
.current-env
--record-env
run ()
Need to implement
save ($name, @files)
Saves new file group $name with the file or glob patters from @files into the local .vtide.yml config file.
$name
@files
record_env ()
Save the current environment variables to a temporary file
diff_env ()
Find the environment keys that differ in the current environment vs that stored in the temporary file
save_env ()
Save environment differences to the projects .vtide.yml file
details_sub ()
Returns the commands details.
env_store
The name of the temporary file for storing the environment variables
save_record_env ()
save_save_env ( $diff_env )
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install App::VTide, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::VTide
CPAN shell
perl -MCPAN -e shell install App::VTide
For more information on module installation, please visit the detailed CPAN module installation guide.