Giter Site home page Giter Site logo

sap-commerce-tools / ybp Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 3.0 10 KB

Auto-navigate to hybris/bin/platform and execute commands

License: Apache License 2.0

Shell 47.86% Batchfile 52.14%
sap-hybris sap-commerce cli shell-script shellscript sap commerce-cloud

ybp's Introduction

Archived on 2020-02-16
I recently switched jobs away from SAP Commerce development

ybp - Execute command in hybris/bin/platform

ko-fi

When working with SAP Commerce, you have to execute most of the interesting commands like ant or hybrisserver.sh in the hybris/bin/platform directory.

This little wrapper takes care of the navigation, regardless in what folder of the project you are, and also sources setantenv.sh, if necessary

You current working dir is not modified, so you can fire any command without loosing you current context.

Installation

  1. Clone or download this repo
  2. chmod u+x ybp (Linux / macOS only)
  3. put ybp / ybp.bat somehwere on your PATH
  4. Never type cd ../../../hybris/bin/platform or source setantenv.sh / setantenv.bat again

Examples

cd myproject/hybris/bin/custom/myextension/some/sub/folder
ybp ant clean all
# run ant clean all for the whole platform

ybp ./hybrisserver.sh debug
# start server

Hint

For maximum laziness developer efficiency, I recommend following aliases:

alias ya='ybp ant'
alias ys='ybp ./hybrisserver.sh'

ybp's People

Contributors

mpern avatar mpern-sap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.