Giter Site home page Giter Site logo

zowe / zowe-explorer-ftp-extension Goto Github PK

View Code? Open in Web Editor NEW
1.0 13.0 2.0 260 KB

Adds zFTP support to Zowe Explorer demonstrating how to extend the Zowe Explorer using its extensibility API.

License: Eclipse Public License 2.0

TypeScript 100.00%

zowe-explorer-ftp-extension's Introduction

Zowe Explorer FTP extension

An example VS Code extension demonstrating how to use the Zowe Explorer extension API. It implements Zowe CLI FTP plugin support for the USS explorer. You can then create Zowe CLI FTP profiles and add them to the USS Zowe Explorer to use the FTP protocol for accessing files instead of zOSMF.

How to build

Install the latest Zowe Explorer

This example will ony work with version 1.2.0 or newer of the Zowe Explorer.

  • Install it from the VS Code Marketplace following the instructions described here.
  • Test the Zowe Explorer using z/OSMF CLI profiles if you have z/OSMF available.

Create a Zowe FTP profile

This example is using the Zowe FTP CLI plugin as a dependency to provide FTP capabilities.

  • Go to the Zowe FTP CLI Plugin GitHub repository for instructions for how to install it: https://github.com/zowe/zowe-cli-ftp-plugin
  • Create Zowe CLI FTP profile:
    zowe profiles create zftp <profile name> -H <host> -u <user> -p <password> -P <port>

Build this extension

This repo uses Yarn for building.

  • Clone this zowe-explorer-ftp-extension repo:
    git clone [email protected]:zowe/zowe-explorer-ftp-extension.git
  • Build the VS Code extension with
    yarn && yarn package
  • Install the vsix file using the Preferences > Extensions menu or just run this extension from VS Code that has the Zowe Explorer built from the AI branch running with the <F5> key.

Using the FTP Extension

  • Start VS Code with the extension installed or via the <F5> out of the development workspace as described above.
  • A message will be shown telling you that activation was successful.
  • Click the + icon and you will see your Zowe FTP profile listed in the drop-down.
  • Select it and it will appear in the USS Explorer.
  • Click the Search icon next to it to specify a USS path to list it.
  • Try opening and saving files.

How to create your own Zowe Explorer extension

TBD, but the rough steps would be:

  • Copy the file src/api/ZoweExplorerAPI.ts
  • Implement classes that implement any of the IMvs, IUss, IJes interfaces.
  • Implement a registration method similar to registerFtpApi() in extension.ts that queries the Zowe Explorer API and calls the registration method.

zowe-explorer-ftp-extension's People

Contributors

phaumer avatar vitgottwald avatar zfernand0 avatar dependabot[bot] avatar

Stargazers

Qi Liang avatar

Watchers

James Cloos avatar Daniel Pono Takamori avatar Jakub Balhar avatar Matt Hogstrom avatar askb avatar Jeff Willoughby avatar Dan Kelosky avatar Naman Patel avatar  avatar vvalderrv avatar  avatar  avatar Alex Dumitru avatar

Forkers

tiantn andiknie

zowe-explorer-ftp-extension's Issues

vsce package missing as a dependency

When you try to run the following command :

npm install && npm run build && npm run package

you will get an error like below

> @zowe/[email protected] postinstall C:\Users\test2020\vscode-extension-for-zowe-api-sample\node_modules\@zowe\cli
> node ./scripts/validatePlugins

Since you re-installed Zowe CLI, we are re-validating any plugins.

_____ Validation results for plugin '@zowe/zos-ftp-for-zowe-cli' _____
This plugin was successfully validated. Enjoy the plugin.
added 148 packages from 148 contributors and audited 150 packages in 8.38s
found 0 vulnerabilities


> [email protected] build C:\Users\test2020\vscode-extension-for-zowe-api-sample
> tsc -p ./


> [email protected] package C:\Users\test2020\vscode-extension-for-zowe-api-sample
> vsce package

'vsce' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] package: `vsce package`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] package script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\AppData\Roaming\npm-cache\_logs\2020-05-29T09_40_08_794Z-debug.log

This is because the vsce needs to be installed globally which can be done either via the following command

npm install -g vsce or you can run it locally to fix this
eg
npm install vsce

Request for enhancement: support data sets

Dear developers, I have recently installed the Zowe Explorer FTP extension, hoping to be able to work with z/OS datasets.
Unfortunately I discovered that it only enables me to work with USS files. While this is very convenient, I could have reached the same goal using one of the other FTP extensions that are available for VSCode.
The real value would be, for me, being able to work seamlessly with z/OS datasets. I see that this is possible using Zowe-cli from the command line with a zftp profile. Would it be possible to add such functionality in the Zowe Explorer FTP Extensions?
Thank you in advance
Cris

Error in building the package

I am following the Build This Extension instructions and I encountered this error. I installed eslint and prettier manually but it is still happening. No idea why. I just disabled npm run lint when building the package.

Capture

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.