Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
splint_client:start [2019/03/01 22:08] 127.0.0.1 external edit |
splint_client:start [2019/06/04 01:20] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Splint Client ===== | + | {{description>Place the page description here}} |
- | The Splint client application is the command line tool that helps you download packages into your [[https://www.codeigniter.com|code-igniter]] project.\\ | + | ====== Splint Client ====== |
+ | The Splint Client application is the command line tool that helps you download packages into your [[https://www.codeigniter.com|Code Igniter]] project.\\ | ||
{{wiki:splint-client.png|Splint Client Screen Shot}} | {{wiki:splint-client.png|Splint Client Screen Shot}} | ||
Line 8: | Line 9: | ||
> N.B You may be required to restart your system after installation before splint can run within a terminal. | > N.B You may be required to restart your system after installation before splint can run within a terminal. | ||
- | Once Splint is installed, you can browse to any root of a [[https://www.codeigniter.com|code-igniter]] project and run ''splint install [vendor/package_name]'' to install any package of your choice. Go to the [[https://splint.cynobit.com|Split]] website to see or search for any package of choice to install.\\ | + | Once Splint is installed, you can browse to any root of a [[https://www.codeigniter.com|Code Igniter]] project and run ''splint install [vendor/package_name]'' to install any package of your choice. Go to the [[https://splint.cynobit.com|Splint]] website to see or search for any package of choice to install.\\ |
> N.B Hold your left Shift button and right-click on any open space in a directory to present the ''Open Terminal Window Here'' option to run commands with the current directory being your working directory. You can alternatively right-click in an open space and select the ''Open Git Bash'' if you have git installed. | > N.B Hold your left Shift button and right-click on any open space in a directory to present the ''Open Terminal Window Here'' option to run commands with the current directory being your working directory. You can alternatively right-click in an open space and select the ''Open Git Bash'' if you have git installed. | ||
- | To be capable of using an installed splint package in your [[https://www.codeigniter.com|code-igniter]] project, your [[https://www.codeigniter.com|code-igniter]] distribution needs to be patched with a custom loader.\\ | + | To be capable of using an installed splint package in your [[https://www.codeigniter.com|Code Igniter]] project, your [[https://www.codeigniter.com|Code Igniter]] distribution needs to be patched with a custom loader.\\ |
Fortunately, the splint client does that by adding a ''MY_Loader.php'' file to your ''application/core/'' folder when you install a splint package. | Fortunately, the splint client does that by adding a ''MY_Loader.php'' file to your ''application/core/'' folder when you install a splint package. | ||
- | === Splint Commands === | + | ===== Splint Commands ===== |
^ Command ^ Description ^ Parameter ^ Examples ^ | ^ Command ^ Description ^ Parameter ^ Examples ^ | ||
| ''install'' | Installs one or more splint packages. to install multiple packages at once, write them out separated by space. | ''<vendor/package_name>'' | ''install francis94c/ci-preference'' | | | ''install'' | Installs one or more splint packages. to install multiple packages at once, write them out separated by space. | ''<vendor/package_name>'' | ''install francis94c/ci-preference'' | | ||
| ''---install'' | Same as ''install'' | ''<vendor/package_name>'' | ''--install francis94c/ci-preference'' | | | ''---install'' | Same as ''install'' | ''<vendor/package_name>'' | ''--install francis94c/ci-preference'' | | ||
+ | | ''-v'' | Gets the current software version | | ''splint -v'' | | ||
| ''-i'' | Same as ''install'' | ''<vendor/package_name>'' | ''-i francis94c/ci-preference'' | | | ''-i'' | Same as ''install'' | ''<vendor/package_name>'' | ''-i francis94c/ci-preference'' | | ||
| ''-c'' | Creates a new splint package. You might want to run this from a code igniter root as the package will be created in ''application/splints/vendor_package_name/'' relative from your current working directory. | ''<vendor/package_name>'' | ''splint -c francis94c/toast'' | | | ''-c'' | Creates a new splint package. You might want to run this from a code igniter root as the package will be created in ''application/splints/vendor_package_name/'' relative from your current working directory. | ''<vendor/package_name>'' | ''splint -c francis94c/toast'' | | ||
| ''-r'' | Creates a ''README.md'' file while creating a splint package. | ''splint -c -r'' | | | ''-r'' | Creates a ''README.md'' file while creating a splint package. | ''splint -c -r'' | | ||
| ''-l'' | List out all installed packages. | | ''splint -l'' | | | ''-l'' | List out all installed packages. | | ''splint -l'' | | ||
- | | ''-n ---no-patch ---no-install-sdk'' | [Flag] Instructs the splint client not to attempt patching the loader during the current process (e.g Installing a package) | ''splint install francis94c/toast -n'' | | + | | ''-n, ---no-patch, ---no-install-sdk'' | [Flag] Instructs the splint client not to attempt patching the loader during the current process (e.g Installing a package) | ''splint install francis94c/toast -n'' | |
| ''-f'' | [Flag] Forces patching of the Loader for a Code-Igniter distribution regardless of the existence of a ''MY_Loader.php'' in the ''application/core/'' folder while installing a package. | ''splint install francis94c/toast -f'' | | | ''-f'' | [Flag] Forces patching of the Loader for a Code-Igniter distribution regardless of the existence of a ''MY_Loader.php'' in the ''application/core/'' folder while installing a package. | ''splint install francis94c/toast -f'' | | ||
- | | ''-p'' | Patches the current code-igniter distribution. This must be run at the root of the code-igniter project. | ''splint -p'' | | + | | ''-p'' | Patches the current Code Igniter distribution. This must be run at the root of the code-igniter project. | ''splint -p'' | |
+ | | ''-b'' | Creates a new Code Igniter project with the specified name. In essence, it creates a folder with the specified name, containing a patched Code Igniter distribution (Splint SDK). | ''splint -b project_or_site_name'' | | ||
+ | |||
+ | To update your version of Splint client, run ''splint-update'' from your terminal. This will also update the version of the Loader class that the splint client uses in patching your Code Igniter distributions.\\ | ||
+ | |||
+ | You will be notified if your ''Loader'' was updated during the execution of the ''splint-update'' command. You will have to run the ''splint -p'' command yourself at the root of any Code Igniter project that you've patched before in order for them to have the latest ''Loader'' class.\\ | ||
+ | |||
+ | ===== NEXT ===== | ||
+ | |||
+ | [[:load_splint|Load Splint Libraries]] => \\ | ||
+ | |||
+ | ===== PREVIOUS ===== | ||
+ | <= [[:app_install|Install a Splint Application]]\\ | ||
+ | |||
+ | ===== Other Topics ===== | ||
+ | [[update_splint|Updating Splint Client]]\\ | ||
+ | [[splint_loader|Load Splint Libraries]] |