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

waffle-server-import-cli

v2.6.28

Published

WS import CLI

Downloads

70

Readme

Waffle Server import CLI Tool

Installation

Make sure you have node.js (version 4.x.x or higher) installed on your computer.

    npm i -g waffle-server-import-cli

SSH-key

Skip this step if you already have ssh-key registered in GitHub

Cli-tool works with github repositories by SSH. So, ssh-key should be added and configured in your Environment for appropriate usage.

Windows users: do following with git-cli terminal.

  • check that you haven't key: ls -al ~/.ssh
  • generate new one: ssh-keygen -t rsa -b 4096 -C "[email protected]" (keep password empty)
  • add your key to ssh-agent: eval "$(ssh-agent -s)" and ssh-add ~/.ssh/id_rsa
  • add it to your GitHub account. Past it into Settings/SSH and GPG keys.
  • test connection: ssh -T [email protected]

More details available here

Usage

Launch tool with following command.

    ws-cli

Use Cases

cli use case diagram

Tool Options Overview

1. Waffle Server Endpoint

- Select from the List;

If endpoint already added through cli tool.

- Add new Endpoint

If new endpoint should be added into cli tool.

2. Add new Waffle Server Endpoint

Type new endpoint and it becomes available in the List.

Example of Input value: http://localhost:3000

3. Select Waffle Server Endpoint

Endpoint should be chosen from the list of reserved endpoints. If there is no URL you need, back to previous Option and select Add new Endpoint.

4. Authentication, Login

Type User Login, provided by Waffle Server Administrator

5. Authentication, Password

Type User Password, provided by Waffle Server Administrator

6. Choose Flow

It is main list of Options in the Tool. It describes all available functionality to work with DataSets.

7. Register Repository

Type new Git Repository URL and it becomes available in the Tool.

Example of Input value: [email protected]:path

8. Import DataSet

Tool provides possibility to Import Dataset from the list of Available Repositories. New Item could be added through Register Repository option.

9. Update DataSet

Tool provides possibility to Update Datasets Incrementally.

10. Remove DataSet

Tool provides possibility to Remove any dataset which is not default or locked and is available for authorized user.

11. RollBack Transaction

Tool provides possibility to Rollback broken transaction.

12. Results Overview

Tool will display List of Imported DataSets with Versions and Prestored Queries for them.

Example of one item:

> ddf-gapminder-world-stub-1-validated
  - version : 1467978881282
  - date    : 2016-06-05 14:54:41
  - url     : http://localhost:3000/api/ddf/datapoints?dataset=ddf-gapminder-world-stub-1-validated&version=1467978881282&year=1800:2015&select=geo,year,energy_use_total,sg_population

13. Check State

Tool provides possibility to Check State of latest Transaction for selected DataSet.

14. Default DataSet

Tool provides possibility to Setup Default DataSet and it Version.

15. Import DataSet / List of DataSet Repositories

Tool displays list of Registered repositories available for Importing.

16. Import DataSet / List of Available Commits

Tool displays list of commits generated based on Git Repository Log. Choose commit as State of Repository for Importing.

Important: IF WS Host is not 'localhost' and not IP-address - prefix 'import-' will be added into the Endpoint.

17. Update DataSet / List of DataSet Repositories

Tool displays list of Registered repositories available for Updating Incrementally.

18. Update DataSet / Choose Commit "To"

Tool displays list of commits generated based on Git Repository Log available for Updating. Choose commit as state of Repository for Updating, means that all changes that were done between it and previous Version (commit) will be aggregated.

19. Remove DataSet / List of DataSet Repositories

Tool displays list of DataSets available for Removing all related data and transactions according to permission of authorized user. List of DataSets are provided by Waffle Server and included only already Imported DataSets.

20. RollBack Transaction / List of DataSet Repositories

Tool displays list of DataSets available for Rolling Back last Transaction if it was broken. List of DataSets are provided by Waffle Server and included only already Imported DataSets.

21. Check State / List of DataSet Repositories

Tool displays list of Datasets available for overview. List of DataSets are provided by Waffle Server and included only already Imported DataSets. Operation Result will be a List of DataSets with Versions and Prestored Queries for them.

Example of operation result:

> ddf-gapminder-world-stub-1-validated : #6c60caa - Completed (2016-06-05 14:55:00)
  - Concepts: 2
  - Entities: 8
  - Datapoints: 481

22. Default DataSet / Choose Default DataSet

Tool displays list of DataSets available to choose as Default. List of DataSets are provided by Waffle Server and included only already Imported DataSets.

23. Default DataSet / Choose Default DataSet Version

Tool displays list of Versions available to choose as Default. List of Versions are provided by Waffle Server.

API

generateDiff

const cliApi = require('waffle-server-import-cli');

const diffOptions = {
  hashFrom: '66a50bb',
  hashTo: '163bd00',
  github: '[email protected]:VS-work/ddf--ws-testing.git',
  resultPath: './any-folder-for-result-files'
};

cliApi.generateDiff(diffOptions, function() {
  console.log("Done!");
});