{"id":20226118,"url":"https://github.com/darshanparajuli/jshellsession","last_synced_at":"2025-03-03T12:46:42.510Z","repository":{"id":77010631,"uuid":"87891732","full_name":"darshanparajuli/JShellSession","owner":"darshanparajuli","description":"A simple Java library for running shell commands.","archived":false,"fork":false,"pushed_at":"2020-10-13T01:05:47.000Z","size":63,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T23:32:18.109Z","etag":null,"topics":["command","java","java7","java8","jshellsession","runner","shell","shell-command"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darshanparajuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T05:21:37.000Z","updated_at":"2022-04-19T07:27:37.000Z","dependencies_parsed_at":"2023-02-28T20:00:22.016Z","dependency_job_id":null,"html_url":"https://github.com/darshanparajuli/JShellSession","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darshanparajuli%2FJShellSession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darshanparajuli%2FJShellSession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darshanparajuli%2FJShellSession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darshanparajuli%2FJShellSession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darshanparajuli","download_url":"https://codeload.github.com/darshanparajuli/JShellSession/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670132,"owners_count":20000326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command","java","java7","java8","jshellsession","runner","shell","shell-command"],"created_at":"2024-11-14T07:16:22.242Z","updated_at":"2025-03-03T12:46:42.248Z","avatar_url":"https://github.com/darshanparajuli.png","language":"Java","readme":"[![Build Status](https://travis-ci.org/darshanparajuli/JShellSession.svg?branch=master)](https://travis-ci.org/darshanparajuli/JShellSession)\n# JShellSession\n\nA simple Java library for running shell commands.\n\n## Simple example\n```java\n// create new JShellSession object\n// Config.defaultConfig().builder() can be used to customize the default Config object\ntry (final JShellSession session = new JShellSession(Config.defaultConfig())) {\n    // run command, i.e \"echo hello world\"\n    final CommandResult result = session.run(\"echo hello world\");\n\n    // check if command ran successfully\n    if (result.exitSuccess()) {\n        // process stdout or stderr (using result.stdErr())\n        for (String s : result.stdOut()) {\n            System.out.println(s);\n        }\n    } else {\n        System.err.println(\"Exit code: \" + result.exitCode());\n    }\n} catch (IOException e) {\n    e.printStackTrace();\n}\n```\n\n###### Any feedback is much appreciated.\n\n:sunglasses: \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarshanparajuli%2Fjshellsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarshanparajuli%2Fjshellsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarshanparajuli%2Fjshellsession/lists"}