GithubHelp home page GithubHelp logo

mertd / shovel-data Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 74.47 MB

A script that checks out all supported scoop buckets and collects the manifests in one searchable json file for shovel.

License: MIT License

Go 100.00%
scoop bucket windows installer data json go golang

shovel-data's Issues

Parse JSON

...instead of just editing the string read from file.
This will allow excluding erroneous manifests with invalid JSON from the generated manifests.json.

Filter manifest keys

Only a subset of keys is needed to enable search; drop the rest to reduce file size.
Has to be done after #8

Get license data

Hi Mertd,

I sucessfully get license field, but i saw on scoop package manifest that is possible to come this way:

"license": {
"identifier": "Freeware",
"url": "http://www.anyburn.com/tutorials/eula.htm"
},

if package comes with example: "license": "LGPL-2.1-or-later", it works, do you know how to parse the sub-values when is required ?

Here my code on shovel-go:

index.SetP(license, "license");
....
func extractManifestContents(manifest *gabs.Container) (string, string, string, string, string) {
var homepage string
var version string
var description string
var github string
var license string
var ok bool
.....
license, ok = manifest.Path("license").Data().(string)
if ok == false {
license = ""
......
return homepage, version, description, license, github

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.