Git Product home page Git Product logo

sn-update-set-extractor's Introduction

SN Update Set Extractor

A ServiceNow utility designed to streamline the process of extracting code from update sets.

Overview

This utility, written in Go, processes ServiceNow update sets. It extracts and organizes code from XML files into corresponding directories and files, making it easier to use in an IDE.

Prerequisites

Getting Started

Clone the repository & change directory:

git clone https://github.com/stevengregory/sn-update-set-extractor
cd sn-update-set-extractor

Load Update Sets

In the root of the project, create a data directory.

mkdir data

Load your update sets into this directory. When running the project, the utility will process all XML files it contains.

Building & Running

To build and run the project, use the following commands:

make clean  # Remove any previous build and output files
make build  # Compile the Go project
make run    # Execute the compiled binary

Run the make command to perform all of these steps in one go:

make

Generated Output

After building & running the project, the extracted code is structured and saved in the dist directory. Each file type is categorized under a parent directory for easy navigation. For example, the output directory structure might look like:

dist/
├── Client Development/
│   ├── Client Script/
│   └── UI Script/
├── Server Development/
│   ├── Business Rule/
│   ├── Fix Script/
│   ├── Script Include/
│   └── UI Action/
├── Service Portal/
│   ├── Angular ng-template/
│   ├── Header | Footer/
│   ├── Page/
│   ├── Style Sheet/
│   ├── Theme/
│   └── Widget/
│   └── Widget Angular Provider/
└── Inbound Integrations/
    └── Scripted REST Resource/

Supported File Types

Currently, the extraction & organization of the following ServiceNow file types is supported:

  • Angular ng-template
  • Business Rule
  • Client Script
  • Fix Script
  • Header | Footer
  • Page
  • Script Include
  • Scripted REST Resource
  • Style Sheet
  • Theme
  • UI Action
  • UI Script
  • Widget
  • Widget Angular Provider

Efforts to support additional file types are ongoing. If there's a specific file type you'd like to see supported, please create an issue in the GitHub repository.

Changelog

For a detailed breakdown of all changes made to this project, see the CHANGELOG file.

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

sn-update-set-extractor's People

Contributors

stevengregory avatar

Watchers

 avatar

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.