npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

shell-project-plugin

v0.1.0

Published

IBM Cloud shell plugin for managing project

Downloads

18

Readme

This shell plugin allows you organize OpenWhisk assets into projects and to deploy and undeploy project as an unit.

⚙ Getting started

This plugin is an extension to the programming shell. Follow these instructions to install it.

Start the shell and install this plugin by typing this command in the shell:

plugin install shell-project-plugin

The reload the shell to activate the plugin.

Alternatively you can install it from a terminal:

$ fsh plugin install shell-project-plugin

Shell project view

Note: The shell does not automatically activate plugins so you need to type project to activate it.

When the project plugin is activated, the title bar shows the name of the current project.

Shell Title Bar

New and extended shell commands

This plugin adds the following commands to manage projects:

$ fsh
Welcome to the IBM Cloud Functions Shell

fsh project add                          [ Add project to the shell ]
fsh project set                          [ Set current project ]
fsh project unset                        [ Unset current project ]
fsh project remove                       [ Remove project from the shell ]
fsh project list                         [ List projects added to the shell ]
fsh project deploy                       [ Deploy project ]
fsh project undeploy                     [ Undeploy project ]
...

The wsk commands have been modified to manage assets belonging to the project only. E.g wsk action list shows only the project actions.

Adding a project to the Cloud Shell

You first need to tell the shell where is the root folder containing your project by using project add. The simple way is to set the current directory to your project directory (by using the lcd command) and to type project add. Each project is associated with a name determined as follows:

  • the value of the property project.name in manifest.yaml
  • the option -name <project_name>
  • the project path last segment

The project name can be used to set the current project or remove a project from the shell.

Set and unset the current active project

The set command is used to switch between projects. It also automatically changes the current directory to the project root folder.

If you want to manage assets that don't belong to a specific project, you can unset the active project. This restore the Cloud Shell behavior as if this plugin was deactivated.

Uninstalling shell-project-plugin

In the shell, type:

plugin remove shell-project-plugin