Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MODULE-SETUP(1)	      User Contributed Perl Documentation      MODULE-SETUP(1)

NAME
       module-setup - create a skeleton	module

SYNOPSIS
       module-setup [options] module_name

	 Examples:
	   module-setup	MyApp

	   module-setup	MyApp other_flavor_name

	   module-setup	--init new_flavor_name

	   module-setup	--pack MyApp::Flavor::Class flavor_name	> MyApp/Flavor/Class.pm

	   module-setup	--direct MyApp # use Module::Setup::Flavor::Default
	   module-setup	--direct --flavor-class=+My::Flavor MyApp

	   module-setup	--additional=DBIC --flavor-class=Additional::Flavor::DBIC default
	   module-setup	--pack --additional=DBIC MyFlavorCatalystDBIC catalyst > MyFlavorCatalystDBIC.pm
	   module-setup	--pack --without-additional MyFlavorCatalyst catalyst >	MyFlavorCatalyst.pm

	 Options:
	   --init		      Create new flavor
	   --pack		      Pack flavor
	     --without-additional     without additional template in pack
	   --direct		      unuse flavor directory
	   --target=dir		      set the target directory for skeleton
	   --flavor=flavor	      Change to	flavor
					  (default is 'default')
	   --flavor-class=base_class  Change to	flavor class
					  (default is 'Module::Setup::Flavor::Default')
	   --plugin=plugin_name	      add using	plugin
	   --additional=name	      additional template name (use L<Module::Setup::Plugin::Additional>)
	   --help		      Show this	message

	 For Devel:
	   --devel		      for flavor development
	     --test		      develpoment flavor test
	     --pack		      create flavor module file
	       --executable	      create executable	file

	   $ module-setup --devel FlavorClassName  # create skeleton
	   $ cd	FlavorClassName
	   $ # edit
	   $ module-setup --devel --test	      #	flavor test
	   $ module-setup --devel --pack	      #	flavor packing
	   $ module-setup --devel --pack --executable >	fobar-setup.pl # create	executable file

perl v5.24.1			  2009-12-21		       MODULE-SETUP(1)

NAME | SYNOPSIS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=module-setup&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help